Skip to content

Commit

Permalink
Re-enable assertNoSymlinks()
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 19, 2024
1 parent 6103246 commit 576a03e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libutil/posix-source-accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,12 @@ std::optional<std::filesystem::path> PosixSourceAccessor::getPhysicalPath(const

void PosixSourceAccessor::assertNoSymlinks(CanonPath path)
{
#if 0
while (!path.isRoot()) {
auto st = cachedLstat(path);
if (st && S_ISLNK(st->st_mode))
throw Error("path '%s' is a symlink", showPath(path));
path.pop();
}
#endif
}

ref<SourceAccessor> getFSSourceAccessor()
Expand Down

0 comments on commit 576a03e

Please sign in to comment.