exa/xtests/attributes
Benjamin Sago f4ddbf3849 Fix tree permissions bug
There was a bug where if you tried to recurse into a directory you didn’t have permission to read the contents of, the error would be ignored.

It now displays the errors.
2017-07-04 17:48:30 +01:00

8.0 KiB

drwxrwxr-x - cassowary 1 Jan 12:34 /testcases/attributes
drwxrwxr-x - cassowary 1 Jan 12:34 ├── dirs
drwxrwxr-x - cassowary 1 Jan 12:34 │ ├── no-xattrs_empty
d--------- - cassowary 1 Jan 12:34 │ ├── no-xattrs_empty_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x - cassowary 1 Jan 12:34 │ ├── no-xattrs_one-file
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── file-in-question
d--------- - cassowary 1 Jan 12:34 │ ├── no-xattrs_one-file_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x - cassowary 1 Jan 12:34 │ ├── no-xattrs_two-files
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ ├── that-file
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── this-file
d--------- - cassowary 1 Jan 12:34 │ ├── no-xattrs_two-files_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── one-xattr_empty
│ │ └── user.greeting (len 5)
d--------- - cassowary 1 Jan 12:34 │ ├── one-xattr_empty_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── one-xattr_one-file
│ │ ├── user.greeting (len 5)
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── file-in-question
d--------- - cassowary 1 Jan 12:34 │ ├── one-xattr_one-file_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── one-xattr_two-files
│ │ ├── user.greeting (len 5)
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ ├── that-file
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── this-file
d--------- - cassowary 1 Jan 12:34 │ ├── one-xattr_two-files_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── two-xattrs_empty
│ │ ├── user.greeting (len 5)
│ │ └── user.another_greeting (len 2)
d--------- - cassowary 1 Jan 12:34 │ ├── two-xattrs_empty_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── two-xattrs_one-file
│ │ ├── user.greeting (len 5)
│ │ ├── user.another_greeting (len 2)
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── file-in-question
d--------- - cassowary 1 Jan 12:34 │ ├── two-xattrs_one-file_forbidden
│ │ └── <Permission denied (os error 13)>
drwxrwxr-x@ - cassowary 1 Jan 12:34 │ ├── two-xattrs_two-files
│ │ ├── user.greeting (len 5)
│ │ ├── user.another_greeting (len 2)
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ ├── that-file
.rw-rw-r-- 0 cassowary 1 Jan 12:34 │ │ └── this-file
d--------- - cassowary 1 Jan 12:34 │ └── two-xattrs_two-files_forbidden
│ └── <Permission denied (os error 13)>
drwxrwxr-x - cassowary 1 Jan 12:34 └── files
.rw-rw-r-- 0 cassowary 1 Jan 12:34 ├── no-xattrs
.--------- 0 cassowary 1 Jan 12:34 ├── no-xattrs_forbidden
.rw-rw-r--@ 0 cassowary 1 Jan 12:34 ├── one-xattr
│ └── user.greeting (len 5)
.--------- 0 cassowary 1 Jan 12:34 ├── one-xattr_forbidden
.rw-rw-r--@ 0 cassowary 1 Jan 12:34 ├── two-xattrs
│ ├── user.greeting (len 5)
│ └── user.another_greeting (len 2)
.--------- 0 cassowary 1 Jan 12:34 └── two-xattrs_forbidden