]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Workunits : fs/misc/chmod.sh : Include ACL characters in permission check. 5178/head
authorYazen Ghannam <yazen.ghannam@linaro.org>
Mon, 4 May 2015 16:33:16 +0000 (12:33 -0400)
committerYazen Ghannam <yazen.ghannam@linaro.org>
Thu, 9 Jul 2015 08:36:28 +0000 (04:36 -0400)
Signed-off-by: Yazen Ghannam <yazen.ghannam@linaro.org>
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