Put the UID and GID that rsyncd will run as into variables.
authorWayne Davison <wayned@samba.org>
Tue, 21 Jan 2003 19:28:29 +0000 (19:28 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 21 Jan 2003 19:28:29 +0000 (19:28 +0000)
testsuite/rsync.fns

index 3ac95f5..cdc545a 100644 (file)
@@ -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