diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/start-stop-daemon.c | 11 |
1 files changed, 1 insertions, 10 deletions
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 <username>|<uid> */ case 'c': /* --chuid <username>|<uid> */ { char *p = optarg; @@ -646,16 +647,6 @@ int start_stop_daemon (int argc, char **argv) test = true; break; - case 'u': /* --user <username>|<uid> */ - 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; |