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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user