svn commit: r203265 - stable/8/tools/regression/acltools

Edward Tomasz Napierala trasz at FreeBSD.org
Sun Jan 31 02:17:02 UTC 2010


Author: trasz
Date: Sun Jan 31 02:17:01 2010
New Revision: 203265
URL: http://svn.freebsd.org/changeset/base/203265

Log:
  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.

Modified:
  stable/8/tools/regression/acltools/tools-posix.test
Directory Properties:
  stable/8/tools/regression/acltools/   (props changed)

Modified: stable/8/tools/regression/acltools/tools-posix.test
==============================================================================
--- stable/8/tools/regression/acltools/tools-posix.test	Sun Jan 31 02:11:14 2010	(r203264)
+++ stable/8/tools/regression/acltools/tools-posix.test	Sun Jan 31 02:17:01 2010	(r203265)
@@ -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


More information about the svn-src-all mailing list