aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-02-26 13:13:44 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-02-26 13:13:44 -0600
commite93b1d76d150c4477015052fc3df9b94647e5b5d (patch)
tree89028483dcbd30eb924238e25ed859fdd3d822dc
parentacf1e43f815898c4a4957db352f71f3fb629edf3 (diff)
openrc: convert another execl() call to execlp()
-rw-r--r--src/rc/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 3054f6c2..a65f35e1 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -288,8 +288,8 @@ open_shell(void)
/* VSERVER systems cannot really drop to shells */
if (sys && strcmp(sys, RC_SYS_VSERVER) == 0)
{
- execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL);
- eerrorx("%s: unable to exec `/sbin/halt': %s",
+ execlp("halt", "halt", "-f", (char *) NULL);
+ eerrorx("%s: unable to exec `halt -f': %s",
applet, strerror(errno));
}
#endif