Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37c817e
)
Fixed the optional sanitization of the files_from arg.
author
Wayne Davison
<wayned@samba.org>
Fri, 30 Jan 2004 16:14:46 +0000
(16:14 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 30 Jan 2004 16:14:46 +0000
(16:14 +0000)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
082d4f7
..
d01aea9
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-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,