Make mingw_offset_1st_component() behave consistently for all paths.
commite4f48abd35a17c1106b2f7113a32e42b4b6b651d
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 1 Feb 2011 22:23:23 +0000 (1 16:23 -0600)
tree822b92d0755d499608b119eb13e58a89aa206aca
parent53d2cd68879842f5f5c3730c5a51dd8c3c7652aa
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