Make mingw_offset_1st_component() behave consistently for all paths.
commit427fbd1d61025ed8f4412409fd69d8f7fe4e25de
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 19 Apr 2011 14:36:54 +0000 (19 16:36 +0200)
treeabbfe7cb3bc816bce00db394dddc6635e53fa4cd
parent4164f20d80a2d8512d4d0ebb204af82ea4e694ba
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