1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

libutil: Fix invalid boost format string in infinite symlink recursion error

Found while working on an automated migration to `std::format`.
This commit is contained in:
Sergei Zimmerman 2025-04-24 21:00:24 +00:00
parent b287f33090
commit bfb357c40b
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -111,7 +111,7 @@ Path canonPath(PathView path, bool resolveSymlinks)
(std::string & result, std::string_view & remaining) {
if (resolveSymlinks && fs::is_symlink(result)) {
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));
if (isAbsolute(remaining)) {
/* restart for symlinks pointing to absolute path */