Commit 5dc4003e authored by Wayne Davison's avatar Wayne Davison

Fixed the optional sanitization of the files_from arg.

parent 37c817eb
......@@ -686,8 +686,10 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
}
} else {
extern int sanitize_paths;
if (sanitize_paths)
sanitize_path(strdup(files_from), NULL);
if (sanitize_paths) {
files_from = strdup(files_from);
sanitize_path(files_from, NULL);
}
filesfrom_fd = open(files_from, O_RDONLY|O_BINARY);
if (filesfrom_fd < 0) {
rsyserr(FERROR, errno,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment