#16164·nix

Traversing x-only dirs fails with EACCES in Nix 2.35

Author: de11nCreated Jul 17, 2026Updated Sep 11, 2026
Labelsbugregression
$ mkdir -p parent/sub && echo 'let x = 42; in x' > parent/sub/f.nix
$ chmod 111 parent
$ nix-instantiate --eval parent/sub/f.nix
  error: … parent/sub/f.nix: Permission denied

# Directly reading the file works, only Nix's resolver fails:
$ cat parent/sub/f.nix
let x = 42; in x

On Nix 2.34:

$ nix-instantiate --eval parent/sub/f.nix
42

This is caused by PosixSourceAccessor, which resolves paths by opening each ancestor directory O_RDONLY (needs r), where 2.34 and prior needed only x.