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 501E51382C5 for ; Mon, 26 Feb 2018 18:23:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92777E0A07; Mon, 26 Feb 2018 18:23:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 70F3EE0A07 for ; Mon, 26 Feb 2018 18:23:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 2DCE8335C06 for ; Mon, 26 Feb 2018 18:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CC141D8 for ; Mon, 26 Feb 2018 18:23:49 +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: <1519669274.acf1e43f815898c4a4957db352f71f3fb629edf3.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/openrc-init.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: acf1e43f815898c4a4957db352f71f3fb629edf3 X-VCS-Branch: master Date: Mon, 26 Feb 2018 18:23:49 +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: 4b05d7f7-d20b-4b07-8c79-5b11fbcb3b8e X-Archives-Hash: 01ef5cabc3abbdc23935897e96579ead commit: acf1e43f815898c4a4957db352f71f3fb629edf3 Author: William Hubbs gmail com> AuthorDate: Mon Feb 26 18:21:14 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Feb 26 18:21:14 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=acf1e43f openrc-init: convert execl calls to execlp src/rc/openrc-init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c index de570e56..d8038637 100644 --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -54,7 +54,7 @@ static pid_t do_openrc(const char *runlevel) sigemptyset(&signals); sigprocmask(SIG_SETMASK, &signals, NULL); printf("Starting %s runlevel\n", runlevel); - execl("/sbin/openrc", "/sbin/openrc", runlevel, NULL); + execlp("openrc", "openrc", runlevel, NULL); perror("exec"); break; default: @@ -89,7 +89,7 @@ static void init(const char *default_runlevel) static void handle_reexec(char *my_name) { - execl(my_name, my_name, "reexec", NULL); + execlp(my_name, my_name, "reexec", NULL); return; }