X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cca4e06786513f63dbf67835d8fba2c15d6f8d4c..34db05b4215009a1b9864df13ea3b62a6b9c5527:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index c5532b56..cdc545a7 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -24,6 +24,13 @@ TO=${TMP}/to LOG=${TMP}/log RSYNC="$rsync_bin" +# UID & GID to run rsyncd as if testsuite is running as root +# +# We don't know if this machine has "nobody" or "nogroup", so use the +# quasi-canonical values of (uint16_t) -2. +RSYNCD_UID=65534 +RSYNCD_GID=65534 + # Berkley's nice. PATH="$PATH:/usr/ucb" @@ -191,11 +198,8 @@ use chroot = no hosts allow = localhost, 127.0.0.1 log file = $logfile -# We don't know if this machine has "nobody" or "nogroup", so use the quasi-canonical -# values of (uint16_t) -2. - -uid = 65534 -gid = 65534 +uid = $RSYNCD_UID +gid = $RSYNCD_GID [test-from] path = $FROM @@ -278,4 +282,4 @@ is_a_link() { # best thing is probably to explicitly chmod those directories after # creation. -umask 022 \ No newline at end of file +umask 022