Make mingw_offset_1st_component() behave consistently for all paths.
commit02b5cbce566ac0cbad01d6ba7062826bdf790e3f
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 16 Jan 2013 09:50:54 +0000 (16 09:50 +0000)
tree01d383c1e1f7652cf9eef67fc2406a745ccf3c1a
parent9147ecfe1cdae83c42d64bfe353d0e12d3b3f11c
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