diff options
author | trasz <trasz@FreeBSD.org> | 2009-07-02 20:05:21 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-07-02 20:05:21 +0000 |
commit | 7ce4ab7ff8542c3c45b1203177f667e0ee30a088 (patch) | |
tree | ef8fbd9a4465b873edf83c3b7199c3892d965c01 /tools | |
parent | f11b84cef6b1e82b2663f5944efa8e2802efe20e (diff) | |
download | FreeBSD-src-7ce4ab7ff8542c3c45b1203177f667e0ee30a088.zip FreeBSD-src-7ce4ab7ff8542c3c45b1203177f667e0ee30a088.tar.gz |
Fix fpathconf(3) on fifos, in effect making ls(1) properly
display '+' on them. Taken from kern/125613, with cosmetic
changes.
PR: kern/125613
Submitted by: Jaakko Heinonen <jh at saunalahti dot fi>
Approved by: re (kib)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/acltools/tools-posix.test | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/regression/acltools/tools-posix.test b/tools/regression/acltools/tools-posix.test index fd57f8e..9ce94cd 100644 --- a/tools/regression/acltools/tools-posix.test +++ b/tools/regression/acltools/tools-posix.test @@ -353,3 +353,37 @@ $ rmdir ddd/ddd $ rm ddd/xxx $ rmdir ddd +# Test if we deal properly with fifos. +$ mkfifo fff +$ ls -l fff | cut -d' ' -f1 +> prw-r--r-- + +$ setfacl -m u:42:r,g:43:w fff +$ getfacl fff +> # file: fff +> # owner: root +> # group: wheel +> user::rw- +> user:42:r-- +> group::r-- +> group:43:-w- +> mask::rw- +> other::r-- + +$ ls -l fff | cut -d' ' -f1 +> prw-rw-r--+ + +$ setfacl -bn fff +$ getfacl fff +> # file: fff +> # owner: root +> # group: wheel +> user::rw- +> group::r-- +> other::r-- + +$ ls -l fff | cut -d' ' -f1 +> prw-r--r-- + +$ rm fff + |