X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/18d7e9f46ec2ee625bfa18c417e5fd89cdd0621c..b3fbe3ce35f9c0f35b9c2f00b3157643255a330d:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index a1902b70..19cfb70a 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -66,11 +66,17 @@ printmsg() { } rsync_ls_lR() { - find "$@" -print | sort | sed 's/ /\\ /g' | xargs "$TOOLDIR/tls" + find "$@" -print | sort | sed 's/ /\\ /g' | xargs "$TOOLDIR/tls" $TLS_ARGS } check_perms() { - "$TOOLDIR/tls" "$1" | grep "^-$2" >/dev/null + perms=`"$TOOLDIR/tls" "$1" | sed 's/^[-d]\(.........\).*/\1/'` + if test $perms = $2; then + return 0 + fi + echo "permissions: $perms on $1" + echo "should be: $2" + test_fail "failed test $3" } rsync_getgroups() { @@ -138,7 +144,7 @@ hands_setup() { #################### # Many machines do not have "mkdir -p", so we have to build up long paths. # How boring. -makepath () { +makepath() { echo " makepath $1" p="$1" ( @@ -218,17 +224,19 @@ build_rsyncd_conf() { port=2612 pidfile="$scratchdir/rsyncd.pid" logfile="$scratchdir/rsyncd.log" + hostname=`uname -n` cat >"$conf" <