Make mingw_offset_1st_component() behave consistently for all paths.
commitceb4b10d2c12106ec33a40da283466e3be7d77ee
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 10 Sep 2010 22:44:24 +0000 (10 23:44 +0100)
treef8bfd6ee7e91081729aa570d8d41464043eb9e26
parent57254127d4c32191aae9a1387cfb5a0181e64c3a
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