mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
parent
b2acf4ab97
commit
d944cb7f58
7 changed files with 11 additions and 11 deletions
|
@ -94,7 +94,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