diff options
author | Wayne Davison <wayned@samba.org> | 2014-04-13 10:36:59 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2014-04-13 10:36:59 -0700 |
commit | 4cad402ea8a91031f86c53961d78bb7f4f174790 (patch) | |
tree | 29e436490513b653309b15c802c3cb333e80f4aa /rsync.h | |
parent | 306d1127304f680d23d49847929725e549ded985 (diff) | |
download | rsync-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |