[PATCH 3/5] halt: replace execlp call with BB_EXECLP

Nadav Tasher tashernadav at gmail.com
Thu Dec 19 21:10:05 UTC 2024


Signed-off-by: Nadav Tasher <tashernadav at gmail.com>
---
 init/halt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/halt.c b/init/halt.c
index 7aea8cfec..471502686 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -230,7 +230,7 @@ int halt_main(int argc UNUSED_PARAM, char **argv)
 				/* runlevels:
 				 * 0 == shutdown
 				 * 6 == reboot */
-				execlp(CONFIG_TELINIT_PATH,
+				BB_EXECLP(CONFIG_TELINIT_PATH,
 						CONFIG_TELINIT_PATH,
 						which == 2 ? "6" : "0",
 						(char *)NULL
-- 
2.34.1



More information about the busybox mailing list