summaryrefslogtreecommitdiffstats
path: root/coccinelle
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-13 12:11:29 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-13 14:39:30 +0100
commit2053593fccabc179881ed7a9b57afcaa8a878cd4 (patch)
treee29a100b48891b1e92137e44c74de76315a343ec /coccinelle
parentnspawn: realign columns (diff)
downloadsystemd-2053593fccabc179881ed7a9b57afcaa8a878cd4.tar.xz
systemd-2053593fccabc179881ed7a9b57afcaa8a878cd4.zip
treewide: drop "RUN_" from "RUN_WITH_UMASK"
RUN_WITH_UMASK was initially conceived for spawning externals progs with the umask set. But nowadays we use it various syscalls and stuff that doesn't "run" anything, so the "RUN_" prefix has outlived its usefulness.
Diffstat (limited to 'coccinelle')
-rw-r--r--coccinelle/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/coccinelle/macros.h b/coccinelle/macros.h
index f44b3f2d26..adfea5fbec 100644
--- a/coccinelle/macros.h
+++ b/coccinelle/macros.h
@@ -43,7 +43,7 @@
// src/basic/umask-util.h
#define _cleanup_umask_
-#define RUN_WITH_UMASK(mask) \
+#define WITH_UMASK(mask) \
for (_cleanup_umask_ mode_t _saved_umask_ = umask(mask) | S_IFMT; \
FLAGS_SET(_saved_umask_, S_IFMT); \
_saved_umask_ &= 0777)