Make mingw_offset_1st_component() behave consistently for all paths.
commit57351bf01bbf5e68539ed17595e20c1292c8f8e6
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:31:49 +0000 (16 16:31 +0200)
tree8519d828946e728a350ad762ef7e5ed853da7ee2
parent1f72afd86d043a61a80cb38f4f69fb5fc6befdc8
Make mingw_offset_1st_component() behave consistently for all paths.

mingw_offset_1st_component() returns "foo" for inputs "/foo" and
"c:/foo", but inconsistently returns "/foo" for UNC input
"/machine/share/foo".  Fix it to return "foo" for all cases.

Reference: http://groups.google.com/group/msysgit/browse_thread/thread/c0af578549b5dda0

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c