summaryrefslogtreecommitdiff
path: root/src/update-utmp
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-02 13:44:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-02 17:12:23 +0200
commitbc9d1dbfc827c22ace2e5fb6755f7e7b93aba3b1 (patch)
tree5f196f043e52d06938d6b912554e4a3a202bd076 /src/update-utmp
parent830ffbce1bea0a270878db30ef331742e782d5ed (diff)
downloadsystemd-bc9d1dbfc827c22ace2e5fb6755f7e7b93aba3b1.tar.gz
update-utmp,initctl: drop ppid check
Such checks make debugging harder but serve no useful purpose otherwise. We got rid of all the checks for root, let's kill those too.
Diffstat (limited to 'src/update-utmp')
-rw-r--r--src/update-utmp/update-utmp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index fd24cdc789..28f1aadabc 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -223,9 +223,6 @@ static int run(int argc, char *argv[]) {
};
int r;
- if (getppid() != 1)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "This program should be invoked by init only.");
if (argc != 2)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"This program requires one argument.");