]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Workunits : fs/misc/chmod.sh : Include ACL characters in permission check. 5589/head
authorYazen Ghannam <yazen.ghannam@linaro.org>
Mon, 4 May 2015 16:33:16 +0000 (12:33 -0400)
committerYan, Zheng <zyan@redhat.com>
Mon, 17 Aug 2015 06:42:09 +0000 (14:42 +0800)
Signed-off-by: Yazen Ghannam <yazen.ghannam@linaro.org>
(cherry picked from commit d3dbfffefb0ae53583350f53258dc902670da659)

qa/workunits/fs/misc/chmod.sh

index dd0552d09ae1fdbb6e4d4efc7fb165b707414a7d..de66776f108be359ccf5f6b40e8275a258f746a4 100755 (executable)
@@ -12,7 +12,9 @@ check_perms() {
        fi
 
        perms=$2
-       if test "${perms}" != $(echo ${r} | awk '{print $1}'); then
+       if test "${perms}" != $(echo ${r} | awk '{print $1}') && \
+           test "${perms}." != $(echo ${r} | awk '{print $1}') && \
+           test "${perms}+" != $(echo ${r} | awk '{print $1}'); then
                echo "ERROR: Permissions should be ${perms}"
                exit 1
        fi