* path.cc (path_conv::check): Avoid splitting off leading '/' in path component

when building a symlink.
This commit is contained in:
Christopher Faylor 2001-08-29 04:43:19 +00:00
parent e4a17c6d11
commit 41d53c9845
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Aug 29 00:40:42 2001 Christopher Faylor <cgf@cygnus.com>
* path.cc (path_conv::check): Avoid splitting off leading '/' in path
component when building a symlink.
Wed Aug 29 0:45:00 2001 Corinna Vinschen <corinna@vinschen.de>
* resource.cc (getrlimit): Return actual values on RLIMIT_STACK.

View File

@ -615,6 +615,8 @@ path_conv::check (const char *src, unsigned opt,
to the symbolic link. */
if ((p = strrchr (path_copy, '/')) == NULL)
p = path_copy;
else if (p == path_copy)
p++;
*p = '\0';
char *headptr;