X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/06464f55e26e1f26e10c04f4a11a4d85fadbd5f7..276cc45571b274349f817a5bbc078f84abb385ce:/testsuite/daemon.test diff --git a/testsuite/daemon.test b/testsuite/daemon.test index 54865053..994a9944 100644 --- a/testsuite/daemon.test +++ b/testsuite/daemon.test @@ -24,8 +24,25 @@ . "$suitedir/rsync.fns" +SSH="src/support/lsh --no-cd" + build_rsyncd_conf +cd "$scratchdir" + +ln -s test-rsyncd.conf rsyncd.conf + +confopt='' +case `id -u` in +0) + # Root needs to specify the config file, or it uses /etc/rsyncd.conf. + echo "Forcing --config=$conf" + confopt=" --config=$conf" + ;; +esac + +$RSYNC -ve "$SSH" --rsync-path="$RSYNC$confopt" localhost:: + RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG