Make mingw_offset_1st_component() behave consistently for all paths.
commitbb6b09c47e97405fc09283c5abcdb9f58c4528c8
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 27 Oct 2011 08:50:55 +0000 (27 09:50 +0100)
treec93427cce1d10febb69e42c2f141b8121f97c5d6
parent8566042646f56f03da5fdf9696037dbeda8d8e05
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