⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chmod-temp-dir.test

📁 Rsync 3.0.5 source code
💻 TEST
字号:
#! /bin/sh# Copyright (C) 2004 by Wayne Davison <wayned@samba.org># 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,# even when using a --temp-dir option (which we try to point at a# different filesystem than the destination dir).. "$suitedir/rsync.fns"hands_setuptmpdir2=/tmpsdev=`$TOOLDIR/getfsdev $scratchdir`tdev=`$TOOLDIR/getfsdev $tmpdir2`if [ x$sdev = x$tdev ]; then    tmpdir2=/var/tmp    tdev=`$TOOLDIR/getfsdev $tmpdir2`    [ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"fichmod 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"# First a normal copy.runtest "normal copy" 'checkit "$RSYNC -avv --temp-dir=\"$tmpdir2\" \"$fromdir/\" \"$todir\"" "$fromdir" "$todir"'# Then we update all the files.runtest "update copy" 'checkit "$RSYNC -avvI --no-whole-file --temp-dir=\"$tmpdir2\" \"$fromdir/\" \"$todir\"" "$fromdir" "$todir"'# The script would have aborted on error, so getting here means we've won.exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -