diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-26 12:21:14 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-26 12:21:14 -0600 |
commit | acf1e43f815898c4a4957db352f71f3fb629edf3 (patch) | |
tree | 1eeac6b268f56d4a3241a12e5cd4e826640b1743 | |
parent | f383fd87b121492a04362ca9041f686d981718f1 (diff) |
openrc-init: convert execl calls to execlp
-rw-r--r-- | src/rc/openrc-init.c | 4 |
1 files 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; } |