X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/271f87e5d415ced858fb63de972fb320c1304079..066696644f8fa36f5ca3be116d015ded400266de:/testsuite/daemon-gzip-upload.test diff --git a/testsuite/daemon-gzip-upload.test b/testsuite/daemon-gzip-upload.test index 8a3f33f4..49ddba99 100644 --- a/testsuite/daemon-gzip-upload.test +++ b/testsuite/daemon-gzip-upload.test @@ -17,9 +17,16 @@ build_rsyncd_conf -RSYNC_CONNECT_PROG="$rsync_bin --config=$conf --daemon" +RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG hands_setup -checkit "$rsync_bin -avvz \"$FROM/\" localhost::test-to/" "$FROM" "$TO" + +# If we are root, we must allow the rsyncd process (which runs under +# a different uid/gid) to write to the destination directory. Source +# directory must be chown'ed as well so that UIDs & GIDs match when +# the source & destination are compared after copying. +chown -R $RSYNCD_UID:$RSYNCD_GID "$FROM" "$TO" 2>/dev/null || true + +checkit "$RSYNC -avvz \"$FROM/\" localhost::test-to/" "$FROM" "$TO"