Make mingw_offset_1st_component() behave consistently for all paths.
commitbcdefd4c635396f7cf22f7230ff73db1235d742e
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:41:46 +0000 (15 09:41 +0200)
tree2ebc73df7302fbd28b43cf89d7e74553240e4c1f
parent79edc7e7646e8e6cc92d7e0d5c366a41e9389e14
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