* [gentoo-commits] proj/openrc:master commit in: src/rc/
@ 2018-02-26 19:15 99% William Hubbs
0 siblings, 0 replies; 1+ results
From: William Hubbs @ 2018-02-26 19:15 UTC (permalink / raw
To: gentoo-commits
commit: e93b1d76d150c4477015052fc3df9b94647e5b5d
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Feb 26 19:13:44 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 19:13:44 2018 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=e93b1d76
openrc: convert another execl() call to execlp()
src/rc/rc.c | 4 ++--
1 file 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
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2018-02-26 19:15 99% [gentoo-commits] proj/openrc:master commit in: src/rc/ William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox