summaryrefslogtreecommitdiff
path: root/src/shared/reboot-util.c
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 /src/shared/reboot-util.c
parentd70eaf3067e12522655afe7064f312ef0e01eb56 (diff)
downloadsystemd-2053593fccabc179881ed7a9b57afcaa8a878cd4.tar.gz
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 'src/shared/reboot-util.c')
-rw-r--r--src/shared/reboot-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/reboot-util.c b/src/shared/reboot-util.c
index 7fa3ff98b6..b110405568 100644
--- a/src/shared/reboot-util.c
+++ b/src/shared/reboot-util.c
@@ -42,7 +42,7 @@ int update_reboot_parameter_and_warn(const char *parameter, bool keep) {
return 0;
}
- RUN_WITH_UMASK(0022) {
+ WITH_UMASK(0022) {
r = write_string_file("/run/systemd/reboot-param", parameter,
WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
if (r < 0)