Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2010 02:17:02 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r203265 - stable/8/tools/regression/acltools
Message-ID:  <201001310217.o0V2H2w7077011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001310217.o0V2H2w7077011>