function.c (abspath): Reset root_len to one for Cygwin only when

HAVE_DOS_PATHS is defined.  Suggested by Christopher Faylor.
This commit is contained in:
Eli Zaretskii 2013-10-03 19:02:14 +03:00
parent 98197303b1
commit f96c114e22
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-03 Eli Zaretskii <eliz@gnu.org>
* function.c (abspath): Reset root_len to one for Cygwin only when
HAVE_DOS_PATHS is defined. Suggested by Christopher Faylor.
2013-10-02 Eli Zaretskii <eliz@gnu.org> 2013-10-02 Eli Zaretskii <eliz@gnu.org>
* w32/compat/posixfcn.c (tmpfile): New function, a replacement for * w32/compat/posixfcn.c (tmpfile): New function, a replacement for

View file

@ -2005,7 +2005,7 @@ abspath (const char *name, char *apath)
} }
else else
{ {
#ifdef __CYGWIN__ #if defined(__CYGWIN__) && defined(HAVE_DOS_PATHS)
if (STOP_SET (name[0], MAP_PATHSEP)) if (STOP_SET (name[0], MAP_PATHSEP))
root_len = 1; root_len = 1;
#endif #endif