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 2009-08-31 20:11:35 +00:00
parent 8101afb656
commit 2bf078b30b

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