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 /main.c | |
parent | 819bfe459919769c9ddae14affeaa79596c640bb (diff) | |
download | rsync-d48810ba5b0b8d09b272092a70da1255c2346ab8.tar.gz rsync-d48810ba5b0b8d09b272092a70da1255c2346ab8.tar.bz2 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 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -902,9 +902,9 @@ static void do_server_recv(int f_in, int f_out, int argc, char *argv[]) if (sanitize_paths) { char **dir_p; for (dir_p = basis_dir; *dir_p; dir_p++) - *dir_p = sanitize_path(NULL, *dir_p, NULL, curr_dir_depth); + *dir_p = sanitize_path(NULL, *dir_p, NULL, curr_dir_depth, SP_DEFAULT); if (partial_dir) - partial_dir = sanitize_path(NULL, partial_dir, NULL, curr_dir_depth); + partial_dir = sanitize_path(NULL, partial_dir, NULL, curr_dir_depth, SP_DEFAULT); } check_alt_basis_dirs(); |