X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6558854dbe14f62cb3713da897b55b9dbaac43eb..d724dd186ed6a2d66fa13a9357ce91e459d39e8c:/testsuite/chmod.test diff --git a/testsuite/chmod.test b/testsuite/chmod.test index ce46b9f0..ad4aeff0 100644 --- a/testsuite/chmod.test +++ b/testsuite/chmod.test @@ -2,7 +2,7 @@ # Copyright (C) 2004 by Wayne Davison -# This program is distributable under the terms of the GNU GPL see +# This program is distributable under the terms of the GNU GPL (see # COPYING). # Test that various read-only and set[ug]id permissions work properly, @@ -11,14 +11,14 @@ . "$suitedir/rsync.fns" -set -x - hands_setup chmod 440 "$fromdir/text" chmod 500 "$fromdir/dir/text" -chmod 6450 "$fromdir/dir/subdir/foobar.baz" -chmod 2670 "$fromdir/dir/subdir/subsubdir/etc-ltr-list" +e="$fromdir/dir/subdir/foobar.baz" +chmod 6450 "$e" || chmod 2450 "$e" || chmod 1450 "$e" || chmod 450 "$e" +e="$fromdir/dir/subdir/subsubdir/etc-ltr-list" +chmod 2670 "$e" || chmod 1670 "$e" || chmod 670 "$e" # First a normal copy. runtest "normal copy" 'checkit "$RSYNC -avv \"$fromdir/\" \"$todir\"" "$fromdir" "$todir"'