mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Use isAbsolute()
This commit is contained in:
parent
ff8e2fe84e
commit
ff9d886f3c
7 changed files with 12 additions and 12 deletions
|
@ -115,7 +115,7 @@ CanonPath SourceAccessor::resolveSymlinks(
|
|||
throw Error("infinite symlink recursion in path '%s'", showPath(path));
|
||||
auto target = readLink(res);
|
||||
res.pop();
|
||||
if (hasPrefix(target, "/"))
|
||||
if (isAbsolute(target))
|
||||
res = CanonPath::root;
|
||||
todo.splice(todo.begin(), tokenizeString<std::list<std::string>>(target, "/"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue