Make mingw_offset_1st_component() behave consistently for all paths.
commit2c1aaf439b6ec0a30c0373434c741948e495cae2
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 May 2012 15:32:47 +0000 (3 10:32 -0500)
tree5710dc14800c5b32e74a8c0b78325330f7824e83
parentdd878a65586b3377de34092b7d9675cdf61bfa36
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