diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-02 13:44:43 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-02 17:12:23 +0200 |
commit | bc9d1dbfc827c22ace2e5fb6755f7e7b93aba3b1 (patch) | |
tree | 5f196f043e52d06938d6b912554e4a3a202bd076 /src/initctl/initctl.c | |
parent | 830ffbce1bea0a270878db30ef331742e782d5ed (diff) | |
download | systemd-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/initctl/initctl.c')
-rw-r--r-- | src/initctl/initctl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c index 7505512fe7..7b93de0d8a 100644 --- a/src/initctl/initctl.c +++ b/src/initctl/initctl.c @@ -341,11 +341,6 @@ int main(int argc, char *argv[]) { Server server; int r = EXIT_FAILURE, n; - if (getppid() != 1) { - log_error("This program should be invoked by init only."); - return EXIT_FAILURE; - } - if (argc > 1) { log_error("This program does not take arguments."); return EXIT_FAILURE; |