* path.cc (path_conv::check): Avoid splitting off leading '/' in path component
when building a symlink.
This commit is contained in:
parent
e4a17c6d11
commit
41d53c9845
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue