Make mingw_offset_1st_component() behave consistently for all paths.
commit4c97457b733cb3e6d29ef9a49cfbbc3c33cbd088
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 22 Mar 2011 12:35:19 +0000 (22 13:35 +0100)
tree080eb80d289b421d1ec9ed08ff0e4e42cb1e8780
parentc3eedbe4bc51b9d8d2cdb3468475fe90a06dd59b
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