tree-wide: coccinelle fixes

This commit is contained in:
Frantisek Sumsal
2020-10-04 12:32:21 +02:00
parent 135a9868a7
commit 1d6cc5d0e5
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ static int unlinkat_harder(
return -errno;
if (!S_ISDIR(st.st_mode))
return -ENOTDIR;
if ((st.st_mode & 0700) == 0700) /* Already set? */
if (FLAGS_SET(st.st_mode, 0700)) /* Already set? */
return -EACCES; /* original error */
if (st.st_uid != geteuid()) /* this only works if the UID matches ours */
return -EACCES;