diff options
author | Wayne Davison <wayned@samba.org> | 2005-02-07 20:40:18 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-02-07 20:40:18 +0000 |
commit | 71903f601a37392eb8ecb737c10fac78d18f5777 (patch) | |
tree | 3828c901acb057429e57c1988eabd9d983f1a179 /main.c | |
parent | 719bc858b516afe845f2342bb2de06b6b1f17855 (diff) | |
download | rsync-71903f601a37392eb8ecb737c10fac78d18f5777.tar.gz rsync-71903f601a37392eb8ecb737c10fac78d18f5777.tar.bz2 rsync-71903f601a37392eb8ecb737c10fac78d18f5777.zip |
Added missing calls to safe_fname() and full_fname().
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -337,7 +337,7 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char *path, if (verbose > 3) { rprintf(FINFO,"cmd="); for (i = 0; i < argc; i++) - rprintf(FINFO,"%s ",args[i]); + rprintf(FINFO, "%s ", safe_fname(args[i])); rprintf(FINFO,"\n"); } @@ -407,7 +407,7 @@ static char *get_local_name(struct file_list *flist,char *name) exit_cleanup(RERR_FILEIO); } if (verbose > 0) - rprintf(FINFO, "created directory %s\n", name); + rprintf(FINFO, "created directory %s\n", safe_fname(name)); if (dry_run) { dry_run++; @@ -965,10 +965,10 @@ static int start_client(int argc, char *argv[]) if (verbose > 3) { rprintf(FINFO,"cmd=%s machine=%s user=%s path=%s\n", - shell_cmd?shell_cmd:"", - shell_machine?shell_machine:"", - shell_user?shell_user:"", - shell_path?shell_path:""); + shell_cmd ? safe_fname(shell_cmd) : "", + shell_machine ? safe_fname(shell_machine) : "", + shell_user ? safe_fname(shell_user) : "", + shell_path ? safe_fname(shell_path) : ""); } /* for remote source, only single dest arg can remain ... */ @@ -1156,7 +1156,7 @@ int main(int argc,char *argv[]) } if (batch_fd < 0) { rsyserr(FERROR, errno, "Batch file %s open error", - batch_name); + full_fname(batch_name)); exit_cleanup(RERR_FILEIO); } if (read_batch) |