summaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorJoe Harvell <jharvell@dogpad.net>2011-06-27 23:20:47 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-06-27 23:20:47 +0200
commit24ba7955634dd571a4c34dd712dc8a592eea4d73 (patch)
treec01d451c582a8dc19d8467646954b4a71c6ad7a7 /src/rc
parente8413733c1716b62b9c139a640e1901fe316d8a9 (diff)
downloadopenrc-24ba7955634dd571a4c34dd712dc8a592eea4d73.tar.gz
openrc-24ba7955634dd571a4c34dd712dc8a592eea4d73.tar.bz2
openrc-24ba7955634dd571a4c34dd712dc8a592eea4d73.tar.xz
Only print the deprecation warning for --chuid/-c when using it
The deprecation warning has been printed when using the replecement functions as well, bug 373243.
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/start-stop-daemon.c5
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 = true;
break;
- case 'u': /* --user <username>|<uid> */
case 'c': /* --chuid <username>|<uid> */
- {
/* DEPRECATED */
ewarn("WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead");
-
+ case 'u': /* --user <username>|<uid> */
+ {
p = optarg;
tmp = strsep(&p, ":");
changeuser = xstrdup(tmp);