Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Mon, 26 Feb 2018 19:15:42
Message-Id: 1519672424.e93b1d76d150c4477015052fc3df9b94647e5b5d.williamh@OpenRC
1 commit: e93b1d76d150c4477015052fc3df9b94647e5b5d
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 26 19:13:44 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 26 19:13:44 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=e93b1d76
7
8 openrc: convert another execl() call to execlp()
9
10 src/rc/rc.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/src/rc/rc.c b/src/rc/rc.c
14 index 3054f6c2..a65f35e1 100644
15 --- a/src/rc/rc.c
16 +++ b/src/rc/rc.c
17 @@ -288,8 +288,8 @@ open_shell(void)
18 /* VSERVER systems cannot really drop to shells */
19 if (sys && strcmp(sys, RC_SYS_VSERVER) == 0)
20 {
21 - execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL);
22 - eerrorx("%s: unable to exec `/sbin/halt': %s",
23 + execlp("halt", "halt", "-f", (char *) NULL);
24 + eerrorx("%s: unable to exec `halt -f': %s",
25 applet, strerror(errno));
26 }
27 #endif