Skip to content

Commit

Permalink
test: Set read_attributes before chmod
Browse files Browse the repository at this point in the history
Explicitly allow read_attributes before trying to chmod. Tests may
fail on some systems, such as FreeBSD, otherwise.

Signed-off-by: Michael Groshans <groshans@umich.edu>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
  • Loading branch information
Michael Groshans authored and kvaneesh committed Jun 16, 2011
1 parent 3b5468f commit 9c86e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/basic.test
Expand Up @@ -6,7 +6,7 @@ $ chown bin .
$ su bin

$ touch x
$ richacl --set 'everyone@:rw::allow' x
$ richacl --set 'everyone@:rwT::allow' x
$ ls -l x | cut -d ' ' -f 1
> -rw-rw-rw-

Expand All @@ -27,7 +27,7 @@ $ richacl --get x
>

$ mkdir sub
$ richacl --set 'everyone@:rwax:fd:allow' sub
$ richacl --set 'everyone@:rwaTx:fd:allow' sub
$ ls -dl sub | cut -d ' ' -f 1
> drwxrwxrwx

Expand Down
2 changes: 1 addition & 1 deletion test/chmod.test
Expand Up @@ -18,7 +18,7 @@ $ richacl --set 'bin:rwm::allow' a

Can set the acl now:
$ su bin
$ richacl --set 'bin:rwm::allow' a
$ richacl --set 'bin:rwTm::allow' a

A chmod limits the permissions to the specified mode, which always disables
write_acl:
Expand Down

0 comments on commit 9c86e0a

Please sign in to comment.