Make mingw_offset_1st_component() behave consistently for all paths.
commit7602e52bfc6f1fee3611ec53739aba174085a865
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 4 Nov 2011 18:39:38 +0000 (4 13:39 -0500)
treee3781517e1582d2cbc86a6fbe48bd5414123e426
parent1c072a62113e2e239da96c4df89718e242bc1185
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