Use faccessat, not access, when checking file permissions.