Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at unlink-old-files.c:24

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

dbox_cleanup_if_exists

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-storage.c)expand/collapse
Show more  
 269  dbox_cleanup_if_exists(struct mail_storage *storage, const char *path)
 270  {
 271          struct stat st;
 272   
 273          if (stat(path, &st) < 0)
 274                  return FALSE;
 275   
 276          /* check once in a while if there are temp files to clean up */
 277          if (st.st_atime > st.st_ctime + DBOX_TMP_DELETE_SECS) {
 278                  /* there haven't been any changes to this directory since we
 279                     last checked it. */
 280          } else if (st.st_atime < ioloop_time - DBOX_TMP_SCAN_SECS) {
 281                  /* time to scan */
 282                  const char *prefix =
 283                          mailbox_list_get_global_temp_prefix(storage->list);
 284   
 285                  (void)unlink_old_files(path, prefix,
 286[+]                                        ioloop_time - DBOX_TMP_DELETE_SECS);
expand/collapse

unlink_old_files

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/unlink-old-files.c)expand/collapse
Show more  
 75  int unlink_old_files(const char *dir, const char *prefix, time_t min_time)
 76  {
 77          int ret;
 78   
 79          T_BEGIN {
 80[+]                 ret = unlink_old_files_real(dir, prefix, min_time);
expand/collapse

unlink_old_files_real

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/unlink-old-files.c)expand/collapse
Show more  
 16  unlink_old_files_real(const char *dir, const char *prefix, time_t min_time)
 17  {
 18          DIR *dirp;
 19          struct dirent *d;
 20          struct stat st;
 21          string_t *path;
 22          unsigned int prefix_len, dir_len;
 23   
 24          dirp = opendir(dir);
Show more  
Show more  
Show more  




Change Warning 7478.24848 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: