Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid false negatice permission denied error message (nushell#9046)
The unix implementation of cd fails with a permission error when classical unix permissions deny access to a directory, but additional mechanisms like ACLs actually grant the user access Fix this by miroring the windows implementation: if we can read_dir() without error => allow the cd to proceed. Addtionally we also handle the case where it is the other way round: unix permissions grant access but additional security modules (SElinux, apparmor, etc.) deny the current user/context.
- Loading branch information