From af1179ea871e4c229bbdd648f71971735a4dc164 Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Thu, 16 Dec 2021 18:26:07 +0300 Subject: ALT: Do not try a few binaries --- src/halt.c | 2 -- src/killall5.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/halt.c b/src/halt.c index 09a1403..c578c7e 100644 --- a/src/halt.c +++ b/src/halt.c @@ -174,8 +174,6 @@ void do_shutdown(char *fl, int should_poweroff, char *tm) args[i++] = NULL; execv("/sbin/shutdown", args); - execv("/etc/shutdown", args); - execv("/bin/shutdown", args); perror("shutdown"); exit(1); diff --git a/src/killall5.c b/src/killall5.c index a5e26ee..0f3fe32 100644 --- a/src/killall5.c +++ b/src/killall5.c @@ -212,9 +212,7 @@ int mount_proc(void) exit(1); } if (pid == 0) { - /* Try a few mount binaries. */ execv("/bin/mount", args); - execv("/sbin/mount", args); /* Okay, I give up. */ nsyslog(LOG_ERR, "cannot execute mount"); -- 2.25.4