Whamcloud - gitweb
LU-7483 test: Modifying filtering in acl for SElinux feature
[fs/lustre-release.git] / lustre / tests / acl / cp.test
index 980002c..9997547 100644 (file)
@@ -9,7 +9,7 @@ The cp utility should only copy ACLs if `-p' is given.
        > -rw-rw-r--+
        
        $ cp f g
-       $ ls -l g | awk -- '{ print $1 }'
+       $ ls -l g | awk -- '{sub(/\\./, "", $1); print $1 }'
        > -rw-r--r--
        
        $ rm g
@@ -24,7 +24,11 @@ The cp utility should only copy ACLs if `-p' is given.
        > blubb
 
        $ rm -r i
-       $ setfacl -R -m u:bin:rwX h
+
+Use to be "$setfacl -R -m u:bin:rwX h", but RHEL4 uncorrectly set the x flag,
+so we change to the following test
+
+       $ setfacl -R -m u:bin:rwx h
        $ getfacl --omit-header h/x
        > user::rw-
        > user:bin:rwx