Make mingw_offset_1st_component() behave consistently for all paths.
commita12e3d42387b3fbb8797733a64b670a472559a23
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 17 Feb 2014 17:57:35 +0000 (17 11:57 -0600)
tree645814aae5979105541eef539bade8ed8598fb0e
parent3665d26648402a3925a645bc4e16925e75df577b
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