Make mingw_offset_1st_component() behave consistently for all paths.
commit9a378c586e90991ab88e306ac004cf4749125116
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 29 Jan 2012 10:58:05 +0000 (29 10:58 +0000)
treeca6bf6408ac68582608826dcd18ba6738cbbb028
parent845f325146824b4de44106d4caf07584238a45cf
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