Make mingw_offset_1st_component() behave consistently for all paths.
commit9eb3267facb83dbd5468750a4e35777bdc2e72ca
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 30 Mar 2011 22:29:30 +0000 (31 00:29 +0200)
treebce00127a367b6e6ec66f1fba49f71e6ecad8762
parentdff143c4023e7cbb6033c0ea3a2312a6c56d7c4e
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