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 1QbJFW-0001yf-HY for garchives@archives.gentoo.org; Mon, 27 Jun 2011 21:21:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 507341C07C; Mon, 27 Jun 2011 21:21:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1FCD21C07C for ; Mon, 27 Jun 2011 21:21:34 +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 6DF151B4040 for ; Mon, 27 Jun 2011 21:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CFA718003C for ; Mon, 27 Jun 2011 21:21:32 +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: <24ba7955634dd571a4c34dd712dc8a592eea4d73.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: 24ba7955634dd571a4c34dd712dc8a592eea4d73 Date: Mon, 27 Jun 2011 21:21:32 +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: 3d16703009c5bfc80c728ce856a955e3 commit: 24ba7955634dd571a4c34dd712dc8a592eea4d73 Author: Joe Harvell dogpad net> AuthorDate: Mon Jun 27 21:20:47 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Mon Jun 27 21:20:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D24ba7955 Only print the deprecation warning for --chuid/-c when using it The deprecation warning has been printed when using the replecement funct= ions as well, bug 373243. --- src/rc/start-stop-daemon.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index b5c2b6e..3017701 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -788,12 +788,11 @@ start_stop_daemon(int argc, char **argv) background =3D true; break; =20 - 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"); - + case 'u': /* --user | */ + { p =3D optarg; tmp =3D strsep(&p, ":"); changeuser =3D xstrdup(tmp);