summaryrefslogtreecommitdiff
path: root/src/shared/machine-id-setup.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/machine-id-setup.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/machine-id-setup.c')
-rw-r--r--src/shared/machine-id-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/machine-id-setup.c b/src/shared/machine-id-setup.c
index 2e33a23cb9..0bdaba00e6 100644
--- a/src/shared/machine-id-setup.c
+++ b/src/shared/machine-id-setup.c
@@ -89,7 +89,7 @@ int machine_id_setup(const char *root, bool force_transient, sd_id128_t machine_
etc_machine_id = prefix_roota(root, "/etc/machine-id");
- RUN_WITH_UMASK(0000) {
+ WITH_UMASK(0000) {
/* We create this 0444, to indicate that this isn't really
* something you should ever modify. Of course, since the file
* will be owned by root it doesn't matter much, but maybe
@@ -166,7 +166,7 @@ int machine_id_setup(const char *root, bool force_transient, sd_id128_t machine_
run_machine_id = prefix_roota(root, "/run/machine-id");
- RUN_WITH_UMASK(0022)
+ WITH_UMASK(0022)
r = id128_write(run_machine_id, ID128_FORMAT_PLAIN, machine_id);
if (r < 0) {
(void) unlink(run_machine_id);