summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-11-26 21:58:19 -0800
committerWayne Davison <wayned@samba.org>2007-11-27 07:34:59 -0800
commit9585b27678ee8b94f2f260e8d8d61ff4381f2fa3 (patch)
tree7b558cd608f2b5bdb266e85a7f52040a194ff484 /rsync.h
parent5c77266d9583fdb556be959e453afae82de70e36 (diff)
downloadrsync-9585b27678ee8b94f2f260e8d8d61ff4381f2fa3.tar.gz
rsync-9585b27678ee8b94f2f260e8d8d61ff4381f2fa3.tar.bz2
rsync-9585b27678ee8b94f2f260e8d8d61ff4381f2fa3.zip
Add a new daemon security option: "munge symlinks".
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 39aa4916..8c9673da 100644
--- a/rsync.h
+++ b/rsync.h
@@ -32,6 +32,9 @@
#define DEFAULT_LOCK_FILE "/var/run/rsyncd.lock"
#define URL_PREFIX "rsync://"
+#define SYMLINK_PREFIX "/rsyncd-munged/"
+#define SYMLINK_PREFIX_LEN ((int)sizeof SYMLINK_PREFIX - 1)
+
#define BACKUP_SUFFIX "~"
/* a non-zero CHAR_OFFSET makes the rolling sum stronger, but is