Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/libutil/file-system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,15 @@ void createDirs(const std::filesystem::path & path)

AutoDelete::AutoDelete()
: del{false}
, recursive(false)
{
}

AutoDelete::AutoDelete(const std::filesystem::path & p, bool recursive)
: _path(p)
, del(true)
, recursive(recursive)
{
del = true;
this->recursive = recursive;
}

void AutoDelete::deletePath()
Expand Down
2 changes: 1 addition & 1 deletion src/libutil/unix/file-descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ OsString readLinkAt(Descriptor dirFd, const CanonPath & path)
buf.resize(bufSize);
ssize_t rlSize = ::readlinkat(dirFd, path.rel_c_str(), buf.data(), bufSize);
if (rlSize == -1)
throw SysError("reading symbolic link '%1%'", path);
throw SysError("reading symbolic link '%1%' relative to parent directory", path.rel());
else if (rlSize < bufSize)
return {buf.data(), static_cast<std::size_t>(rlSize)};
}
Expand Down
Loading