Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at mail-transaction-log.c:65

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

mail_transaction_log_2_unlink_old

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c)expand/collapse
Show more  
 49  static void mail_transaction_log_2_unlink_old(struct mail_transaction_log *log)
 50  {
 51          struct stat st;
 52          const char *path;
 53   
 54          path = t_strconcat(log->index->filepath,
 55[+]                            MAIL_TRANSACTION_LOG_SUFFIX".2", NULL);
 56          if (stat(path, &st) < 0) {
 57                  if (errno != ENOENT && errno != ESTALE) {
 58                          mail_index_set_error(log->index,
 59                                  "stat(%s) failed: %m", path);
 60                  }
 61                  return;
 62          }
 63   
 64          if (st.st_mtime + MAIL_TRANSACTION_LOG2_STALE_SECS <= ioloop_time) {
 65                  if (unlink(path) < 0 && errno != ENOENT) {
Show more  




Change Warning 7234.24832 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: