diff options
author | trasz <trasz@FreeBSD.org> | 2009-08-31 20:11:35 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-08-31 20:11:35 +0000 |
commit | 32325ff370832584d4cfcee53617f9fb5dd1a32f (patch) | |
tree | 05bc854cefee1686ac0af3f6e0ca7818df5133ef /tools | |
parent | 19a52c95a5822c19fb6b00b966fe5459c6218a93 (diff) | |
download | FreeBSD-src-32325ff370832584d4cfcee53617f9fb5dd1a32f.zip FreeBSD-src-32325ff370832584d4cfcee53617f9fb5dd1a32f.tar.gz |
Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/acltools/tools-posix.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/regression/acltools/tools-posix.test b/tools/regression/acltools/tools-posix.test index 9ce94cd..bfb7ae0 100644 --- a/tools/regression/acltools/tools-posix.test +++ b/tools/regression/acltools/tools-posix.test @@ -387,3 +387,19 @@ $ ls -l fff | cut -d' ' -f1 $ rm fff +# Test if we deal properly with device files. +$ mknod bbb b 1 1 +$ setfacl -m u:42:r,g:43:w bbb +> setfacl: acl_get_file() failed: Operation not supported +$ ls -l bbb | cut -d' ' -f1 +> brw-r--r-- + +$ rm bbb + +$ mknod ccc c 1 1 +$ setfacl -m u:42:r,g:43:w ccc +> setfacl: acl_get_file() failed: Operation not supported +$ ls -l ccc | cut -d' ' -f1 +> crw-r--r-- + +$ rm ccc |