Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1657be2
)
Put the UID and GID that rsyncd will run as into variables.
author
Wayne Davison
<wayned@samba.org>
Tue, 21 Jan 2003 19:28:29 +0000
(19:28 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 21 Jan 2003 19:28:29 +0000
(19:28 +0000)
testsuite/rsync.fns
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/rsync.fns
b/testsuite/rsync.fns
index
3ac95f5
..
cdc545a
100644
(file)
--- a/
testsuite/rsync.fns
+++ b/
testsuite/rsync.fns
@@
-24,6
+24,13
@@
TO=${TMP}/to
LOG=${TMP}/log
RSYNC="$rsync_bin"
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"
# Berkley's nice.
PATH="$PATH:/usr/ucb"
@@
-191,11
+198,8
@@
use chroot = no
hosts allow = localhost, 127.0.0.1
log file = $logfile
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
[test-from]
path = $FROM