summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-08-19 19:22:26 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-08-19 19:22:26 +0000
commite9269c67a59ffa741123cb2ce3ab8dfb97136dec (patch)
tree5a1121114ce4e6944379f825d995b61c6e059c99 /source3/utils
parentc3453bae126c040fa1f90a77a18dfd4fd7536d4a (diff)
downloadsamba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.tar.gz
samba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.tar.bz2
samba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.zip
Makefile: Changed for HPUX10 tidyup.
includes.h: Changed for HPUX10 tidyup. ipc.c: Fixed bug where getting local server list from NT browsers would fail. nmbsync.c: Fixed bug where getting local server list from NT browsers would fail. proto.h: Changed for crash bug on SCO with USE_MMAP. quotas.c: Added OSF quotas (patch from Bret Giddings <bret@essex.ac.uk>). Rolled back solaris uid change - I think it was wrong. reply.c: Changed for crash bug on SCO with USE_MMAP. server.c: Removed Lukes changes. Changed for crash bug on SCO with USE_MMAP. smb.h: Changed for crash bug on SCO with USE_MMAP. smbpasswd.c:Fixed crash bug with Lukes changes. uid.c: Removed Lukes changes. util.c: Fixed I18N bug with extended char filenames and widelinks = no. Jeremy (jallison@whistle.com) (This used to be commit bf1c79f7fd7f9beec4f9f4e58337cadceeb1cb38)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 7a4a1e2cdb..161555d52c 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -269,7 +269,7 @@ static void usage(char *name)
if ((argv[1][0] == '-') && (argv[1][1] == 'a'))
add_user = True;
- if(add_user && (argc < 2 || argc > 4))
+ if(add_user && (argc <= 2 || argc > 4))
usage(argv[0]);
/* root can specify password on command-line */
@@ -338,7 +338,7 @@ static void usage(char *name)
p = getpass("Retype new SMB password:");
- if (strcmp(p, new_passwd))
+ if (strncmp(p, new_passwd, sizeof(fstring)-1))
{
fprintf(stderr, "%s: Mismatch - password unchanged.\n", argv[0]);
exit(1);