Make mingw_offset_1st_component() behave consistently for all paths.
commite5ba16a017d8c8ea9a2694997e2edfda39f29a6c
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 19 Dec 2010 22:17:02 +0000 (19 23:17 +0100)
tree56a67bae0fa184cc2b3dc8920e5fb4720e672113
parent55ecac435ca5068b2b93c5249cd19c8d7c2e1c1b
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