Skip to content

Reading directory content fails when some entries are not accessible #98

@redbeam

Description

@redbeam

When reading contents of a directory that contains files/directories that are for some reason not accessible to the 9P server process, the whole operation fails with a "Permission denied" error and no files are listed.

core@localhost$ cd mounted_dir
core@localhost$ ls -la
ls: reading directory '.': Permission denied
total 0

Ideally, the behavior should reflect that of ls, e.g.:

core@localhost:/proc/1$ ls -la
ls: cannot read symbolic link 'cwd': Permission denied
ls: cannot read symbolic link 'root': Permission denied
ls: cannot read symbolic link 'exe': Permission denied
total 0
dr-xr-xr-x.   9 root root   0 Nov 26 12:16 .
dr-xr-xr-x. 258 root root   0 Nov 26 12:16 ..
-r--r--r--.   1 root root   0 Nov 26 13:31 arch_status
dr-xr-xr-x.   2 root root   0 Nov 26 12:16 attr
-rw-r--r--.   1 root root   0 Nov 26 13:31 autogroup
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions