X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/54b405985632b71444f215bb547a2b6a7f0f3637..4875d6b64dd0ed8d451746cc0cc609cff36192bd:/options.c diff --git a/options.c b/options.c index a00370fc..5cb8c22d 100644 --- a/options.c +++ b/options.c @@ -993,8 +993,10 @@ int parse_arguments(int *argc, const char ***argv, int frommain) backup_dir_buf[backup_dir_len++] = '/'; backup_dir_buf[backup_dir_len] = '\0'; } - if (verbose > 1 && !am_sender) - rprintf(FINFO, "backup_dir is %s\n", backup_dir_buf); + if (verbose > 1 && !am_sender) { + rprintf(FINFO, "backup_dir is %s\n", + safe_fname(backup_dir_buf)); + } } else if (!backup_suffix_len && (!am_server || !am_sender)) { snprintf(err_buf, sizeof err_buf, "--suffix cannot be a null string without --backup-dir\n");