]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: simplify get_process_umask() invocation
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Aug 2023 08:35:53 +0000 (10:35 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Aug 2023 10:33:17 +0000 (12:33 +0200)
src/core/unit.c

index 0451a235099657dd0683f9ddf5366eae68e24115..bfa96abb00ef9ae177fbb18eec18149c97a72d9d 100644 (file)
@@ -207,7 +207,7 @@ static void unit_init(Unit *u) {
                         /* User manager might have its umask redefined by PAM or UMask=. In this
                          * case let the units it manages inherit this value by default. They can
                          * still tune this value through their own unit file */
-                        (void) get_process_umask(getpid_cached(), &ec->umask);
+                        (void) get_process_umask(0, &ec->umask);
                 }
         }