From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5C51D58973 for ; Fri, 22 Jan 2016 18:53:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42D8721C007; Fri, 22 Jan 2016 18:53:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E635F21C007 for ; Fri, 22 Jan 2016 18:53:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03D46340901 for ; Fri, 22 Jan 2016 18:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA61E1017 for ; Fri, 22 Jan 2016 18:53:06 +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: <1453488389.47dd5e37cbf372df3ee0fad2c87226dce5b51587.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/openrc-run.c src/rc/rc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 47dd5e37cbf372df3ee0fad2c87226dce5b51587 X-VCS-Branch: master Date: Fri, 22 Jan 2016 18:53:06 +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: 445536da-ebd4-49e9-89d1-5649c03d395e X-Archives-Hash: 5e29739fd542d94ca41fc50161edb87f commit: 47dd5e37cbf372df3ee0fad2c87226dce5b51587 Author: William Hubbs gmail com> AuthorDate: Fri Jan 22 18:46:29 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jan 22 18:46:29 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=47dd5e37 add back deprecation warnings lost during refactoring src/rc/openrc-run.c | 4 ++++ src/rc/rc.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c index 2a4b90d..5e3ba67 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -1121,6 +1121,10 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } + applet = basename_c(argv[0]); + if (strcmp(applet, "runscript") == 0) + ewarnv("runscript is deprecated, please use openrc-run instead."); + if (stat(argv[1], &stbuf) != 0) { fprintf(stderr, "openrc-run `%s': %s\n", argv[1], strerror(errno)); diff --git a/src/rc/rc.c b/src/rc/rc.c index 4efa0cf..11170b4 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -830,6 +830,8 @@ int main(int argc, char **argv) } } + if (strcmp(applet, "rc") == 0) + ewarnv("rc is deprecated, please use openrc instead."); newlevel = argv[optind++]; /* To make life easier, we only have the shutdown runlevel as * nothing really needs to know that we're rebooting.