PR/31144: YOMURA Masanori: pwhash -S/-b never use optarg

This commit is contained in:
christos 2006-03-05 08:50:58 +00:00
parent a4495f4cec
commit ac2addb00e

View File

@ -1,4 +1,4 @@
/* $NetBSD: pwhash.c,v 1.13 2005/06/02 02:19:51 lukem Exp $ */
/* $NetBSD: pwhash.c,v 1.14 2006/03/05 08:50:58 christos Exp $ */
/* $OpenBSD: encrypt.c,v 1.16 2002/02/16 21:27:45 millert Exp $ */
/*
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: pwhash.c,v 1.13 2005/06/02 02:19:51 lukem Exp $");
__RCSID("$NetBSD: pwhash.c,v 1.14 2006/03/05 08:50:58 christos Exp $");
#endif
#include <sys/types.h>
@ -104,15 +104,15 @@ print_passwd(char *string, int operation, const char *extra)
break;
case DO_MD5:
error = pw_gensalt(buf, _PASSWORD_LEN, "md5", NULL);
error = pw_gensalt(buf, _PASSWORD_LEN, "md5", extra);
break;
case DO_SHA1:
error = pw_gensalt(buf, _PASSWORD_LEN, "sha1", NULL);
error = pw_gensalt(buf, _PASSWORD_LEN, "sha1", extra);
break;
case DO_BLF:
error = pw_gensalt(buf, _PASSWORD_LEN, "blowfish", NULL);
error = pw_gensalt(buf, _PASSWORD_LEN, "blowfish", extra);
break;
case DO_DES: