mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
Merge branch '2.24-maintenance' into 2.24-maintenance
This commit is contained in:
commit
fa2a3c6de8
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ Path canonPath(PathView path, bool resolveSymlinks)
|
||||||
(std::string & result, std::string_view & remaining) {
|
(std::string & result, std::string_view & remaining) {
|
||||||
if (resolveSymlinks && fs::is_symlink(result)) {
|
if (resolveSymlinks && fs::is_symlink(result)) {
|
||||||
if (++followCount >= maxFollow)
|
if (++followCount >= maxFollow)
|
||||||
throw Error("infinite symlink recursion in path '%0%'", remaining);
|
throw Error("infinite symlink recursion in path '%1%'", remaining);
|
||||||
remaining = (temp = concatStrings(readLink(result), remaining));
|
remaining = (temp = concatStrings(readLink(result), remaining));
|
||||||
if (isAbsolute(remaining)) {
|
if (isAbsolute(remaining)) {
|
||||||
/* restart for symlinks pointing to absolute path */
|
/* restart for symlinks pointing to absolute path */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue