File System Race Condition at nfs-workarounds.c:127 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
nfs_safe_link (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)![]() | ||||||
![]() | ||||||
116 | int nfs_safe_link(const char *oldpath, const char *newpath, bool links1) | |||||
117 | { | |||||
118 | struct stat st; | |||||
119 | nlink_t orig_link_count = 1; | |||||
120 | ||||||
121 | if (!links1) { | |||||
122 | if (stat(oldpath, &st) < 0) | |||||
123 | return -1; | |||||
124 | orig_link_count = st.st_nlink; | |||||
125 | } | |||||
126 | ||||||
127 | if (link(oldpath, newpath) == 0) {
| |||||
![]() |