1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Fix FilteringInputAccessor::pathExists()

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Eelco Dolstra 2022-12-21 16:47:26 +01:00 committed by GitHub
parent b48e64162a
commit 5e3cd3e292
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,8 +29,7 @@ struct FilteringInputAccessor : InputAccessor
bool pathExists(const CanonPath & path) override
{
checkAccess(path);
return next->pathExists(prefix + path);
return isAllowed(path) && next->pathExists(prefix + path);
}
Stat lstat(const CanonPath & path) override