# Make ctl_mboxlist -d/-u use same format as cyr_dbtool Index: imap/ctl_mboxlist.c =================================================================== RCS file: /cvs/src/cyrus/imap/ctl_mboxlist.c,v retrieving revision 1.56 diff -u -d -r1.56 ctl_mboxlist.c --- imap/ctl_mboxlist.c 18 Jul 2007 18:56:11 -0000 1.56 +++ imap/ctl_mboxlist.c 11 Sep 2007 11:20:43 -0000 @@ -210,7 +210,7 @@ switch (d->op) { case DUMP: if(!d->partition || !strcmp(d->partition, part)) { - printf("%s\t%d %s\t%s\n", name, mbtype, part, acl); + printf("%s\t%d %s %s\n", name, mbtype, part, acl); if(d->purge) { config_mboxlist_db->delete(mbdb, key, keylen, &(d->tid), 0); } @@ -537,7 +537,7 @@ if (*p == ' ') p++; } partition = p; - for (; *p && *p != '\t'; p++) ; + for (; *p && (*p != ' ') && (*p != '\t'); p++) ; if (!*p) { fprintf(stderr, "line %d: no acl found\n", line); continue;