Merge pull request #17230 from mrc0mmand/coccinelle_fixes

coccinelle: fix the incorrect transformation/isomorphisms
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-10-05 08:03:40 +02:00
committed by GitHub
16 changed files with 57 additions and 80 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;