Make mingw_offset_1st_component() behave consistently for all paths.
commitfe47e475c0d9f0e8b39a846ef02baa6551923f0b
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 13 Mar 2012 05:44:26 +0000 (13 00:44 -0500)
tree2f96cd7c892012dee43aa4f861d60f7b5fa9a726
parent63b0b39f6e71dc47e515d47748a8fc44a0db556b
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