Text   |  XML   |  ReML   |   Visible Warnings:

Format String  at imap-acl-plugin.c:271

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

cmd_getacl

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/imap-acl/imap-acl-plugin.c)expand/collapse
Show more  
 243  static bool cmd_getacl(struct client_command_context *cmd)
 244  {
 245          struct acl_backend *backend;
 246          struct mail_namespace *ns;
 247          struct mail_storage *storage;
 248          struct mailbox *box;
 249          const char *mailbox;
 250          string_t *str;
 251          int ret;
 252   
 253          if (!client_read_string_args(cmd, 1, &mailbox))
 254                  return FALSE;
 255   
 256          box = acl_mailbox_open_as_admin(cmd, mailbox);
 257          if (box == NULL)
 258                  return TRUE;
 259   
 260          str = t_str_new(128);
 261          str_append(str, "* ACL ");
 262          imap_quote_append_string(str, mailbox, FALSE);
 263   
 264          storage = mailbox_get_storage(box);
 265          backend = acl_storage_get_backend(storage);
 266          ns = mail_storage_get_namespace(storage);
 267          ret = imap_acl_write_aclobj(str, backend,
 268                                      acl_mailbox_get_aclobj(box), TRUE,
 269                                      ns->type == NAMESPACE_PRIVATE);
 270          if (ret == 0) {
 271                  client_send_line(cmd->client, str_c(str));
 272                  client_send_tagline(cmd, "OK Getacl completed.");
 273          } else {
 274                  client_send_tagline(cmd, "NO "MAIL_ERRSTR_CRITICAL_MSG);
 275          }
 276          mailbox_close(&box);
 277          return TRUE;
 278  }
Show more  




Change Warning 8189.26104 : Format String

Priority:
State:
Finding:
Owner:
Note: