File System Race Condition at mbox-storage.c:114 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
mbox_is_file (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/mbox/mbox-storage.c)![]() | ||||||
![]() | ||||||
96 | static bool mbox_is_file(const char *path, const char *name, bool debug) | |||||
97 | { | |||||
98 | struct stat st; | |||||
99 | ||||||
100 | if (stat(path, &st) < 0) { | |||||
101 | if (debug) { | |||||
102 | i_info("mbox autodetect: %s: stat(%s) failed: %m", | |||||
103 | name, path); | |||||
104 | } | |||||
105 | return FALSE; | |||||
106 | } | |||||
107 | if (S_ISDIR(st.st_mode)) { | |||||
108 | if (debug) { | |||||
109 | i_info("mbox autodetect: %s: is a directory (%s)", | |||||
110 | name, path); | |||||
111 | } | |||||
112 | return FALSE; | |||||
113 | } | |||||
114 | if (access(path, R_OK|W_OK) < 0) {
| |||||
![]() |