> Amusingly it does work though, because the error is correct: Hmm, really.. Python opens the path first and then stats, so EACCES at open() is handled first. open(".", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0700, st_size=12288, ...}) = 0 close(3) = 0