protoize.c (abspath): Preserve multiple leading slashes for _WIN32 and Interix.

* protoize.c (abspath): Preserve multiple leading slashes for
        _WIN32 and Interix.

Co-Authored-By: Donn Terry <donn@interix.com>

From-SVN: r25933
This commit is contained in:
Mumit Khan 1999-03-23 21:53:39 +00:00 committed by Jeff Law
parent 2aa0c933d1
commit 8ebf19db46
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue Mar 23 22:51:48 1999 Mumit Khan <khan@xraylith.wisc.edu>
Donn Terry <donn@interix.com>
* protoize.c (abspath): Preserve multiple leading slashes for
_WIN32 and Interix.
1999-01-23 Mike Stump <mrs@wrs.com>
* arm/vxarm.h: Split out vxWorks support into separate headerfile

View File

@ -1287,7 +1287,7 @@ abspath (cwd, rel_filename)
outp = inp = abs_buffer;
*outp++ = *inp++; /* copy first slash */
#ifdef apollo
#if defined (apollo) || defined (_WIN32) || defined (__INTERIX)
if (inp[0] == '/')
*outp++ = *inp++; /* copy second slash */
#endif