From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QTEgr-00016R-4u for garchives@archives.gentoo.org; Sun, 05 Jun 2011 14:52:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BCFB1C01C; Sun, 5 Jun 2011 14:52:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 39E311C01C for ; Sun, 5 Jun 2011 14:52:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7C5F1B4005 for ; Sun, 5 Jun 2011 14:52:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D06DB8003C for ; Sun, 5 Jun 2011 14:52:21 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <4eb37f67cf1edbece52b5617cb763bbd899ab385.idl0r@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/start-stop-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: 4eb37f67cf1edbece52b5617cb763bbd899ab385 Date: Sun, 5 Jun 2011 14:52:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f6db2f4269262c6eab1726af09a98dec commit: 4eb37f67cf1edbece52b5617cb763bbd899ab385 Author: Christian Ruppert gentoo org> AuthorDate: Sun Jun 5 14:49:12 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Sun Jun 5 14:49:12 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D4eb37f67 Warn if deprecated commandline options are used for start-stop-daemon --- src/rc/start-stop-daemon.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 72b8aff..b5c2b6e 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -791,6 +791,9 @@ start_stop_daemon(int argc, char **argv) case 'u': /* --user | */ case 'c': /* --chuid | */ { + /* DEPRECATED */ + ewarn("WARNING: -c/--chuid is deprecated and will be removed in the f= uture, please use -u/--user instead"); + p =3D optarg; tmp =3D strsep(&p, ":"); changeuser =3D xstrdup(tmp); @@ -867,6 +870,8 @@ start_stop_daemon(int argc, char **argv) break; =20 case 'o': /* --oknodo */ + /* DEPRECATED */ + ewarn("WARNING: -o/--oknodo is deprecated and will be removed in the = future"); oknodo =3D true; break; =20 @@ -887,6 +892,8 @@ start_stop_daemon(int argc, char **argv) break; =20 case 'a': /* --startas */ + /* DEPRECATED */ + ewarn("WARNING: -a/--startas is deprecated and will be removed in the= future, please use -x/--exec or -n/--name instead"); startas =3D optarg; break; case 'w':