Make mingw_offset_1st_component() behave consistently for all paths.
commit1bd7b49e00739e4cfcff3248601a8013d808e0ee
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 2 Nov 2011 20:12:07 +0000 (2 15:12 -0500)
tree3e99c4b0fd22e0b90a0ad983be386652bf1345b4
parent7b0967d065430ea2ea2b2bc5c3390a744760bb38
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