There may be other places where this should be fixed, but this at least
fixes errors with dsync where "-user" entry without any rights was attempted
to be synced in dovecot-acl (although such entry shouldn't really have
existed in the first place).
if (rights->rights != NULL)
str_append(str, t_strarray_join(rights->rights, " "));
- if (rights->neg_rights != NULL) {
+ if (rights->neg_rights != NULL && rights->neg_rights[0] != NULL) {
if (str_len(str) > 0)
str_append_c(str, ' ');
str_append_c(str, '-');