]> git.sur5r.net Git - bacula/bacula/commitdiff
Make sure we use the right chmod for Solaris
authorMarco van Wieringen <mvw@planets.elm.net>
Sun, 27 Sep 2009 15:27:22 +0000 (17:27 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 27 Sep 2009 15:27:22 +0000 (17:27 +0200)
regress/tests/acl-xattr-test

index 991fdc9ad4aad0f861bdb927506acd2a582e37d2..3a28ab2a2ac15a15e0df8106afe740f66432ba6f 100755 (executable)
@@ -101,24 +101,25 @@ case `uname -s` in
       #
       df -F zfs $d > /dev/null 2>&1
       if [ $? = 0 ]; then
-         chmod A+user:$uid:rx:allow $d/acl-dir
-         chmod A+user:root:wx:allow $d/acl-dir
-         chmod A+user:nobody:rwx:deny $d/acl-dir
-         chmod A+user:nobody:rwx:deny $d/bconsole
-         chmod A+group:nogroup:x:allow $d/bconsole
+         /bin/chmod A+user:$uid:rx:allow $d/acl-dir
+         /bin/chmod A+user:root:wx:allow $d/acl-dir
+         /bin/chmod A+user:nobody:rwx:deny $d/acl-dir
+         /bin/chmod A+user:nobody:rwx:deny $d/bconsole
+         /bin/chmod A+group:nogroup:x:allow $d/bconsole
       else
-         chmod A+user:$uid:r-x $d/acl-dir
-         chmod A+user:root:-wx $d/acl-dir
-         chmod A+user:nobody:--- $d/acl-dir
-         chmod A+user:nobody:--- $d/bconsole
-         chmod A+group:nogroup:--x $d/bconsole
+         /bin/chmod A+user:$uid:r-x $d/acl-dir
+         /bin/chmod A+user:root:-wx $d/acl-dir
+         /bin/chmod A+user:nobody:--- $d/acl-dir
+         /bin/chmod A+user:nobody:--- $d/bconsole
+         /bin/chmod A+group:nogroup:--x $d/bconsole
       fi
-      runat $d/other 'cat > bacula.test' << EOF
+      cp ${cwd}/bin/bconsole $d/other
+      /bin/runat $d/other 'cat > bacula.test' << EOF
 rulez
 EOF
       ( cd $cwd/build
-        ls -ldv -R acl > $cwd/tmp/org
-        runat $d/other 'cat bacula.test' > $cwd/tmp/attr.org
+        /bin/ls -ldv -R acl > $cwd/tmp/org
+        /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.org
       )
       ;;
 esac
@@ -167,8 +168,8 @@ case `uname -s` in
       ;;
    SunOS)
       ( cd $cwd/tmp/bacula-restores/$cwd/build
-        ls -ldv -R acl > $cwd/tmp/new
-        runat $d/other 'cat bacula.test' > $cwd/tmp/attr.new
+        /bin/ls -ldv -R acl > $cwd/tmp/new
+        /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.new
       )
       ;;
 esac