From acf1e43f815898c4a4957db352f71f3fb629edf3 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 26 Feb 2018 12:21:14 -0600 Subject: [PATCH] openrc-init: convert execl calls to execlp --- src/rc/openrc-init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c index de570e56..d8038637 100644 --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -54,7 +54,7 @@ static pid_t do_openrc(const char *runlevel) sigemptyset(&signals); sigprocmask(SIG_SETMASK, &signals, NULL); printf("Starting %s runlevel\n", runlevel); - execl("/sbin/openrc", "/sbin/openrc", runlevel, NULL); + execlp("openrc", "openrc", runlevel, NULL); perror("exec"); break; default: @@ -89,7 +89,7 @@ static void init(const char *default_runlevel) static void handle_reexec(char *my_name) { - execl(my_name, my_name, "reexec", NULL); + execlp(my_name, my_name, "reexec", NULL); return; }