summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2014-04-13 10:36:59 -0700
committerWayne Davison <wayned@samba.org>2014-04-13 10:36:59 -0700
commit4cad402ea8a91031f86c53961d78bb7f4f174790 (patch)
tree29e436490513b653309b15c802c3cb333e80f4aa /rsync.h
parent306d1127304f680d23d49847929725e549ded985 (diff)
downloadrsync-4cad402ea8a91031f86c53961d78bb7f4f174790.tar.gz
rsync-4cad402ea8a91031f86c53961d78bb7f4f174790.tar.bz2
rsync-4cad402ea8a91031f86c53961d78bb7f4f174790.zip
Receiver now rejects invalid filenames in filelist.
If the receiver gets a filename with a leading slash (w/o --relative) and/or a filename with an embedded ".." dir in the path, it dies with an error (rather than continuing). Those invalid paths should never happen in reality, so just reject someone trying to pull a fast one.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 205029b7..4fef8827 100644
--- a/rsync.h
+++ b/rsync.h
@@ -208,6 +208,7 @@
#define CFN_KEEP_TRAILING_SLASH (1<<1)
#define CFN_DROP_TRAILING_DOT_DIR (1<<2)
#define CFN_COLLAPSE_DOT_DOT_DIRS (1<<3)
+#define CFN_REFUSE_DOT_DOT_DIRS (1<<4)
#define SP_DEFAULT 0
#define SP_KEEP_DOT_DIRS (1<<0)