Make mingw_offset_1st_component() behave consistently for all paths.
commit0ef905871fedb1fc3f82969df6652385c7b5380d
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 6 Aug 2011 11:43:14 +0000 (6 13:43 +0200)
tree4230f379ddf50a2e59f6fe54cbf081cf98795e16
parent22afe73f419d238de53d5ee737f90be2b25d6fcc
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