1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-25 21:57:32 +03:00

core: simplify get_process_umask() invocation

This commit is contained in:
Lennart Poettering 2023-08-22 10:35:53 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 08801318e8
commit 41beeb3e30

View 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);
}
}