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