summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-02-15 22:19:43 -0800
committerWayne Davison <wayned@samba.org>2008-02-15 22:19:43 -0800
commitbeef86d0dda124ca59005846049cf7d60efb69c7 (patch)
tree308b06fac0bf22049be4d642c826a79955a58933 /util.c
parent2fe1feea751bdb73797169402cd79fb25ace420c (diff)
downloadrsync-beef86d0dda124ca59005846049cf7d60efb69c7.tar.gz
rsync-beef86d0dda124ca59005846049cf7d60efb69c7.tar.bz2
rsync-beef86d0dda124ca59005846049cf7d60efb69c7.zip
A few minor changes, including better push_dir()/pop_dir() verbosity.
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.c b/util.c
index 5dd6ead4..03f4054a 100644
--- a/util.c
+++ b/util.c
@@ -895,8 +895,8 @@ int push_dir(const char *dir, int set_path_only)
curr_dir_depth = count_dir_elements(curr_dir + module_dirlen);
}
- if (verbose >= 5)
- rprintf(FINFO, "[%s] dir is now %s\n", who_am_i(), curr_dir);
+ if (verbose >= 5 && !set_path_only)
+ rprintf(FINFO, "[%s] push_dir(%s)\n", who_am_i(), curr_dir);
return 1;
}
@@ -916,6 +916,9 @@ int pop_dir(const char *dir)
if (sanitize_paths)
curr_dir_depth = count_dir_elements(curr_dir + module_dirlen);
+ if (verbose >= 5)
+ rprintf(FINFO, "[%s] pop_dir(%s)\n", who_am_i(), curr_dir);
+
return 1;
}