Make mingw_offset_1st_component() behave consistently for all paths.
commitfc45e0478c09a20292991d26d66913552ef61d03
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 25 May 2013 10:26:45 +0000 (25 11:26 +0100)
tree5438b7a62dc4c2bc8dacbf755bd46e112371b106
parentd599693e0a70552a16b4ef71e4728475d6db2437
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