From 9ea8afb2002d59acc792189c4992541e04686215 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 20 Aug 2007 09:08:06 +0000 Subject: No point in having to lots of get the user code. --- src/start-stop-daemon.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src') diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index d1a3d494..51e4dee8 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -565,6 +565,7 @@ int start_stop_daemon (int argc, char **argv) background = true; break; + case 'u': /* --user | */ case 'c': /* --chuid | */ { char *p = optarg; @@ -646,16 +647,6 @@ int start_stop_daemon (int argc, char **argv) test = true; break; - case 'u': /* --user | */ - if (sscanf (optarg, "%d", &tid) != 1) { - struct passwd *pw = getpwnam (optarg); - if (! pw) - eerrorx ("%s: user `%s' not found", applet, optarg); - uid = pw->pw_uid; - } else - uid = tid; - break; - case 'r': /* --chroot /new/root */ ch_root = optarg; break; -- cgit v1.2.3