aboutsummaryrefslogtreecommitdiffstats
path: root/exclude.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-03-20 11:59:54 -0700
committerWayne Davison <wayned@samba.org>2008-03-20 22:39:29 -0700
commitd48810ba5b0b8d09b272092a70da1255c2346ab8 (patch)
tree46b7a8cc372f917bafe0879f3db54e1b681d13f9 /exclude.c
parent819bfe459919769c9ddae14affeaa79596c640bb (diff)
downloadandroid_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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exclude.c b/exclude.c
index d192b551..422a824d 100644
--- a/exclude.c
+++ b/exclude.c
@@ -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;