summaryrefslogtreecommitdiff
path: root/source3/utils/smbpasswd.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-08-17 14:45:04 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-08-17 14:45:04 +0000
commitf0255b38bc17f4da9a63b2be4c3ce505688e933e (patch)
tree02704f36832ac0c59a0d70c32203abcbdf18fec6 /source3/utils/smbpasswd.c
parentfcbb06414d2c8385ce4e68f23905a528c8fbd4e8 (diff)
downloadsamba-f0255b38bc17f4da9a63b2be4c3ce505688e933e.tar.gz
samba-f0255b38bc17f4da9a63b2be4c3ce505688e933e.tar.bz2
samba-f0255b38bc17f4da9a63b2be4c3ce505688e933e.zip
sync 3.0 branch with HEAD
(This used to be commit 1b83b78e332b9d28914eff155530e81cf2073a58)
Diffstat (limited to 'source3/utils/smbpasswd.c')
-rw-r--r--source3/utils/smbpasswd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 70bf551edb..98993676c9 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -92,7 +92,7 @@ static int process_options(int argc, char **argv, int local_flags)
user_name[0] = '\0';
- while ((ch = getopt(argc, argv, "c:axdehmnjr:sw:R:D:U:L")) != EOF) {
+ while ((ch = getopt(argc, argv, "c:axdehminjr:sw:R:D:U:L")) != EOF) {
switch(ch) {
case 'L':
local_flags |= LOCAL_AM_ROOT;
@@ -416,9 +416,11 @@ static int process_root(int local_flags)
exit(1);
}
}
+
+ /* prepare uppercased and '$' terminated username */
slprintf(buf, sizeof(buf) - 1, "%s$", user_name);
fstrcpy(user_name, buf);
-
+
} else {
if (remote_machine != NULL) {