Skip to content

Commit 2704757

Browse files
authored
Merge pull request #13086 from xokdvium/bad-format-string
libutil: Fix invalid boost format string in infinite symlink recursion error
2 parents 96a1740 + bfb357c commit 2704757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/file-system.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Path canonPath(PathView path, bool resolveSymlinks)
111111
(std::string & result, std::string_view & remaining) {
112112
if (resolveSymlinks && fs::is_symlink(result)) {
113113
if (++followCount >= maxFollow)
114-
throw Error("infinite symlink recursion in path '%0%'", remaining);
114+
throw Error("infinite symlink recursion in path '%1%'", remaining);
115115
remaining = (temp = concatStrings(readLink(result), remaining));
116116
if (isAbsolute(remaining)) {
117117
/* restart for symlinks pointing to absolute path */

0 commit comments

Comments
 (0)