dovecot-2.2: doveadm fs delete -R: Don't add extra '/' chars in ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 17 08:53:52 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/3215ef3e3031
changeset: 18410:3215ef3e3031
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 17 11:52:24 2015 +0300
description:
doveadm fs delete -R: Don't add extra '/' chars in the middle of paths

diffstat:

 src/doveadm/doveadm-fs.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 87ec8d53c9fa -r 3215ef3e3031 src/doveadm/doveadm-fs.c
--- a/src/doveadm/doveadm-fs.c	Fri Apr 17 11:20:23 2015 +0300
+++ b/src/doveadm/doveadm-fs.c	Fri Apr 17 11:52:24 2015 +0300
@@ -263,7 +263,7 @@
 	t_array_init(&fnames, 8);
 	iter = fs_iter_init(fs, path, FS_ITER_FLAG_DIRS);
 	while ((fname = fs_iter_next(iter)) != NULL) {
-		fname = t_strconcat(fname, "/", NULL);
+		fname = t_strdup(fname);
 		array_append(&fnames, &fname, 1);
 	}
 	if (fs_iter_deinit(&iter) < 0) {


More information about the dovecot-cvs mailing list