X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d1c06c2180f337deaa059fc408fcca4f4770a585..311676ed21eb61ec49187b9dd064aef18997d470:/testsuite/daemon.test diff --git a/testsuite/daemon.test b/testsuite/daemon.test index 439b8835..77178439 100644 --- a/testsuite/daemon.test +++ b/testsuite/daemon.test @@ -45,7 +45,16 @@ cd "$scratchdir" ln -s test-rsyncd.conf rsyncd.conf -$RSYNC -ve $SSH --rsync-path="$RSYNC" localhost:: +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