12345678910111213141516171819202122232425262728293031323334353637383940 |
- . "$suitedir/rsync.fns"
- hands_setup
- tmpdir2=/tmp
- sdev=`$TOOLDIR/getfsdev $scratchdir`
- tdev=`$TOOLDIR/getfsdev $tmpdir2`
- if [ x$sdev = x$tdev ]
- tmpdir2=/var/tmp
- tdev=`$TOOLDIR/getfsdev $tmpdir2`
- [ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"
- fi
- chmod 440 "$fromdir/text"
- chmod 500 "$fromdir/dir/text"
- 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"
- runtest "normal copy" 'checkit "$RSYNC -avv --temp-dir=\"$tmpdir2\" \"$fromdir/\" \"$todir\"" "$fromdir" "$todir"'
- runtest "update copy" 'checkit "$RSYNC -avvI --no-whole-file --temp-dir=\"$tmpdir2\" \"$fromdir/\" \"$todir\"" "$fromdir" "$todir"'
- exit 0
|