diff options
| author | Wayne Davison <wayned@samba.org> | 2005-10-24 21:03:53 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-10-24 21:03:53 +0000 |
| commit | 37439b36e72a2fbd7999e40f243781ae0b463db3 (patch) | |
| tree | 5491e4b8e0d41f01c9a18507fa540ac53c513a50 /rsyncd.conf.yo | |
| parent | c95ca2a228ba4ccb7085f481341c7b4a9e8cdc5e (diff) | |
| download | android_external_rsync-37439b36e72a2fbd7999e40f243781ae0b463db3.tar.gz android_external_rsync-37439b36e72a2fbd7999e40f243781ae0b463db3.tar.bz2 android_external_rsync-37439b36e72a2fbd7999e40f243781ae0b463db3.zip | |
Updated the docs for pre-/post-xfer exec.
Diffstat (limited to 'rsyncd.conf.yo')
| -rw-r--r-- | rsyncd.conf.yo | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo index 8053f758..7ef31cb5 100644 --- a/rsyncd.conf.yo +++ b/rsyncd.conf.yo @@ -458,7 +458,8 @@ dit(bf(pre-xfer exec), bf(post-xfer exec)) You may specify a command to be run before and/or after the transfer. If the bf(pre-xfer exec) command fails, the transfer is aborted before it begins. -The following environment variables are set for both commands: +The following environment variables will be set, though some are +specific to the pre-xfer or the post-xfer environment: quote(itemize( it() bf(RSYNC_MODULE_NAME): The name of the module being accessed. @@ -466,22 +467,18 @@ quote(itemize( it() bf(RSYNC_HOST_ADDR): The accessing host's IP address. it() bf(RSYNC_HOST_NAME): The accessing host's name. it() bf(RSYNC_USER_NAME): The accessing user's name (empty if no user). -)) - -These environment variables will also be set for the bf(post-xfer exec) -command: - -quote(itemize( - it() bf(RSYNC_EXIT_STATUS): rsync's exit value. This will be 0 for a + it() bf(RSYNC_REQUEST): (pre-xfer only) The module/path info specified + by the user (note that the user can specify multiple source files, + so the request can be something like "mod/path1 mod/path2", etc.). + it() bf(RSYNC_EXIT_STATUS): (post-xfer only) rsync's exit value. This will be 0 for a successful run, a positive value for an error that rsync returned (e.g. 23=partial xfer), or a -1 if rsync failed to exit properly. - it() bf(RSYNC_RAW_STATUS): the raw exit value from waitpid(). + it() bf(RSYNC_RAW_STATUS): (post-xfer only) the raw exit value from waitpid(). )) Even though the commands can be associated with a particular module, they are run using the permissions of the user that started the daemon (not the -module's uid/gid setting) without any chroot restrictions (even if the -module will/has run chroot()ed). +module's uid/gid setting) without any chroot restrictions. enddit() |
