From: Marco van Wieringen Date: Sun, 27 Sep 2009 15:27:22 +0000 (+0200) Subject: Make sure we use the right chmod for Solaris X-Git-Tag: Release-7.0.0~2616^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90d51ffd5436ccdea916c9e6c4c452fe832bf274;p=bacula%2Fbacula Make sure we use the right chmod for Solaris --- diff --git a/regress/tests/acl-xattr-test b/regress/tests/acl-xattr-test index 991fdc9ad4..3a28ab2a2a 100755 --- a/regress/tests/acl-xattr-test +++ b/regress/tests/acl-xattr-test @@ -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