Make mingw_offset_1st_component() behave consistently for all paths.
commitbfa895be7491f7cd1285b429daf58ad6ea05e722
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 6 Dec 2011 00:16:55 +0000 (6 00:16 +0000)
tree228145d3376042cfda37d3a1068dd747bf47fe40
parent65754ac3eaa963299dc98d225f0aa63a59df52ff
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