From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 222691382C5 for ; Mon, 26 Feb 2018 19:15:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D9CDE09AE; Mon, 26 Feb 2018 19:15:41 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BAC0E09AE for ; Mon, 26 Feb 2018 19:15:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03171335C2A for ; Mon, 26 Feb 2018 19:15:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38A591E8 for ; Mon, 26 Feb 2018 19:15:31 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1519672424.e93b1d76d150c4477015052fc3df9b94647e5b5d.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: e93b1d76d150c4477015052fc3df9b94647e5b5d X-VCS-Branch: master Date: Mon, 26 Feb 2018 19:15:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4c4b4c77-024e-4440-b6b1-d51f0029c2af X-Archives-Hash: 8187404477e572989201c6cbedb8cdc1 commit: e93b1d76d150c4477015052fc3df9b94647e5b5d Author: William Hubbs gmail com> AuthorDate: Mon Feb 26 19:13:44 2018 +0000 Commit: William Hubbs gentoo 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