]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix OSX acl regression test.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 21 Jun 2011 08:48:17 +0000 (10:48 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:02 +0000 (14:49 +0200)
regress/tests/acl-xattr-test

index c27e2fd2f142131c4d811786e01691a2ca30054a..d7ae46a82e1968621211078f9d6040d791ed73b7 100755 (executable)
@@ -118,10 +118,11 @@ case `uname -s` in
       )
       ;;
    Darwin)
-      chmod +a "user:$uid allow read execute" $d/acl-dir
-      chmod +a "user:root allow write execute" $d/acl-dir
-      chmod +a "user:nobody deny read write execute" $d/acl-dir
-      chmod +a "user:nobody deny read write execute" $d/bconsole
+      username=`id -un`
+      chmod +a "user:$username allow read,execute" $d/acl-dir
+      chmod +a "user:root allow write,execute" $d/acl-dir
+      chmod +a "user:nobody deny read,write,execute" $d/acl-dir
+      chmod +a "user:nobody deny read,write,execute" $d/bconsole
       chmod +a "group:nogroup allow execute" $d/bconsole
       cp ${cwd}/bin/bconsole $d/acl-dir
       cp ${cwd}/bin/bconsole $d/other