summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/smbpasswd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index dcfafaa8b9..7a0d0eeea9 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -271,11 +271,10 @@ static int process_root(int argc, char *argv[])
char *old_passwd = NULL;
char *remote_machine = NULL;
- while ((ch = getopt(argc, argv, "a:x:d:e:mnj:r:sR:D:U:")) != EOF) {
+ while ((ch = getopt(argc, argv, "ax:d:e:mnj:r:sR:D:U:")) != EOF) {
switch(ch) {
case 'a':
local_flags |= LOCAL_ADD_USER;
- user_name = optarg;
break;
case 'x':
local_flags |= LOCAL_DELETE_USER;
@@ -297,6 +296,7 @@ static int process_root(int argc, char *argv[])
case 'n':
local_flags |= LOCAL_SET_NO_PASSWORD;
new_passwd = "NO PASSWORD";
+ break;
case 'j':
new_domain = optarg;
strupper(new_domain);
@@ -328,7 +328,6 @@ static int process_root(int argc, char *argv[])
argc -= optind;
argv += optind;
-
/*
* Ensure add/delete user and either remote machine or join domain are
* not both set.