openrc: convert another execl() call to execlp()
This commit is contained in:
parent
acf1e43f81
commit
e93b1d76d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user