dovecot-2.2: doveadm fs delete: Fixed non-recursive deletion bro...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 13 20:57:28 EET 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/436117bbac78
changeset: 17096:436117bbac78
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 13 20:57:12 2014 +0200
description:
doveadm fs delete: Fixed non-recursive deletion broken by previous commit

diffstat:

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

diffs (16 lines):

diff -r 012d6d22aa67 -r 436117bbac78 src/doveadm/doveadm-fs.c
--- a/src/doveadm/doveadm-fs.c	Fri Jan 10 15:00:39 2014 -0500
+++ b/src/doveadm/doveadm-fs.c	Mon Jan 13 20:57:12 2014 +0200
@@ -323,10 +323,10 @@
 			fs_cmd_help(cmd_fs_delete);
 		}
 	}
-	argc -= optind; argv += optind;
+	argc -= optind-1; argv += optind-1;
 
 	if (recursive) {
-		cmd_fs_delete_recursive(argc+1, argv-1, async_count);
+		cmd_fs_delete_recursive(argc, argv, async_count);
 		return;
 	}
 


More information about the dovecot-cvs mailing list