Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at lazy-expunge-plugin.c:327

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

dir_move_or_merge

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/lazy-expunge/lazy-expunge-plugin.c)expand/collapse
Show more  
 309  static int dir_move_or_merge(struct mailbox_list *list,
 310                               const char *srcdir, const char *destdir)
 311  {
 312          DIR *dir;
 313          struct dirent *dp;
 314          string_t *src_path, *dest_path;
 315          unsigned int src_dirlen, dest_dirlen;
 316          int ret = 0;
 317   
 318          if (rename(srcdir, destdir) == 0 || errno == ENOENT)
 319                  return 0;
 320   
 321          if (!EDESTDIREXISTS(errno)) {
 322                  mailbox_list_set_critical(list,
 323                          "rename(%s, %s) failed: %m", srcdir, destdir);
 324          }
 325   
 326          /* rename all the files separately */
 327          dir = opendir(srcdir);
Show more  




Change Warning 8112.24843 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: