openrc: convert another execl() call to execlp()

This commit is contained in:
William Hubbs 2018-02-26 13:13:44 -06:00
parent acf1e43f81
commit e93b1d76d1

View File

@ -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