From: Lennart Poettering Date: Tue, 22 Aug 2023 08:35:53 +0000 (+0200) Subject: core: simplify get_process_umask() invocation X-Git-Tag: v255-rc1~673 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41beeb3e30491539b93e70660d916f932a05b25f;p=thirdparty%2Fsystemd.git core: simplify get_process_umask() invocation --- diff --git a/src/core/unit.c b/src/core/unit.c index 0451a235099..bfa96abb00e 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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); } }