Make mingw_offset_1st_component() behave consistently for all paths.
commit388423d1bd18e0ba6f14253dd5c656651d404512
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 29 Jul 2010 11:17:22 +0000 (29 13:17 +0200)
tree64af4f489d0ca88e5ba6025f4000f62b96f08428
parentf208f12d5baf50f8e04329b2cf82e2e4de9f5791
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