diff options
author | Wayne Davison <wayned@samba.org> | 2008-03-20 11:59:54 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-03-20 22:39:29 -0700 |
commit | d48810ba5b0b8d09b272092a70da1255c2346ab8 (patch) | |
tree | 46b7a8cc372f917bafe0879f3db54e1b681d13f9 /exclude.c | |
parent | 819bfe459919769c9ddae14affeaa79596c640bb (diff) | |
download | android_external_rsync-d48810ba5b0b8d09b272092a70da1255c2346ab8.tar.gz android_external_rsync-d48810ba5b0b8d09b272092a70da1255c2346ab8.tar.bz2 android_external_rsync-d48810ba5b0b8d09b272092a70da1255c2346ab8.zip |
Some improvements to the file-name cleaning code:
- Removed the CFN_KEEP_LEADING_DOT_DIR flag for clean_fname().
- Explicitly add an implied dot-dir to the transfer rather than keeping
a leading a "./" prefix as a part of a relative pathname.
- Added the CFN_KEEP_DOT_DIRS flag for clean_fname().
- Added the SP_KEEP_DOT_DIRS flag for sanitize_path().
- Call clean_fname() a couple more times.
Diffstat (limited to 'exclude.c')
-rw-r--r-- | exclude.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -295,7 +295,7 @@ static char *parse_merge_name(const char *merge_file, unsigned int *len_ptr, strlcpy(to, merge_file, *len_ptr + 1); merge_file = to; } - if (!sanitize_path(fn, merge_file, r, dirbuf_depth)) { + if (!sanitize_path(fn, merge_file, r, dirbuf_depth, SP_DEFAULT)) { rprintf(FERROR, "merge-file name overflows: %s\n", merge_file); return NULL; |