Skip to content

Commit

Permalink
filesystem/deletePath: remove unnecessary quotes from error message
Browse files Browse the repository at this point in the history
Paths are already quoted:

error:
       … while fetching the input 'path:/nix/store/rs2s2ca7xs87v82aps54m1p3sqrfz6c8-source'

       error: chmod '"/nix/store/rs2s2ca7xs87v82aps54m1p3sqrfz6c8-source"': Read-only file system
  • Loading branch information
Mic92 committed Dec 19, 2024
1 parent 3f3feae commit 17b3b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/file-system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static void _deletePath(Descriptor parentfd, const fs::path & path, uint64_t & b
const auto PERM_MASK = S_IRUSR | S_IWUSR | S_IXUSR;
if ((st.st_mode & PERM_MASK) != PERM_MASK) {
if (fchmodat(parentfd, name.c_str(), st.st_mode | PERM_MASK, 0) == -1)
throw SysError("chmod '%1%'", path);
throw SysError("chmod %1%", path);
}

int fd = openat(parentfd, path.c_str(), O_RDONLY);
Expand Down

0 comments on commit 17b3b32

Please sign in to comment.