mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* 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>
|
Wed Aug 29 0:45:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* resource.cc (getrlimit): Return actual values on RLIMIT_STACK.
|
* 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. */
|
to the symbolic link. */
|
||||||
if ((p = strrchr (path_copy, '/')) == NULL)
|
if ((p = strrchr (path_copy, '/')) == NULL)
|
||||||
p = path_copy;
|
p = path_copy;
|
||||||
|
else if (p == path_copy)
|
||||||
|
p++;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
char *headptr;
|
char *headptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user