Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at index-storage.c:132

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

get_index_dir

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-storage.c)expand/collapse
Show more  
 113  static const char *
 114  get_index_dir(struct mail_storage *storage, const char *name,
 115                enum mailbox_open_flags flags, struct stat *st_r)
 116  {
 117          const char *index_dir;
 118   
 119          index_dir = (flags & MAILBOX_OPEN_NO_INDEX_FILES) != 0 ? "" :
 120                  mailbox_list_get_path(storage->list, name,
 121[+]                                       MAILBOX_LIST_PATH_TYPE_INDEX);
 122          if (*index_dir == '\0') {
 123                  /* disabled */
 124                  return NULL;
 125          }
 126   
 127          if (stat(index_dir, st_r) < 0) {
 128                  if (errno == ENOENT) {
 129                          /* try to create it */
 130[+]                         if (create_index_dir(storage, name) < 0)
 131                                  return NULL;
 132                          if (stat(index_dir, st_r) == 0)
Show more  




Change Warning 7373.25010 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: