MFC r196710:

Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.
This commit is contained in:
Edward Tomasz Napierala 2010-01-31 02:17:01 +00:00
parent 7782c5efe8
commit 30718ea4eb

View file

@ -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