Add a new daemon security option: "munge symlinks".
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 39aa491..8c9673d 100644 (file)
--- 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