Make mingw_offset_1st_component() behave consistently for all paths.
commit922e85b9aba55a42407a65e696d7ae62e55cb82e
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:13 +0000 (15 18:05 +0100)
tree4854ba1eedb1d8c13eff72a787d31726d23017bd
parent455d209b9d5826b070a5b3fa299f5ebeb60b1422
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