Make mingw_offset_1st_component() behave consistently for all paths.
commit7ee779d156ebc3302db44afdad068dcc4d14c379
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 11 Aug 2010 13:47:27 +0000 (11 15:47 +0200)
tree54d68b354ec28f4ca4aaf79a4026183fe1a997a0
parentfbb9dffb637419124651fb1b445d57f279e299ad
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