summaryrefslogtreecommitdiffstats
path: root/eBones
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1995-08-02 23:15:12 +0000
committerpst <pst@FreeBSD.org>1995-08-02 23:15:12 +0000
commitf1d988f45458284e951f1bb999c6cbf57912d6d3 (patch)
treef55ce3fb8e7b74fa50ba7a54af07f74f19ef61b3 /eBones
parent8d218a37bd2b60abc5c1267bee0adc008f8004d9 (diff)
downloadFreeBSD-src-f1d988f45458284e951f1bb999c6cbf57912d6d3.zip
FreeBSD-src-f1d988f45458284e951f1bb999c6cbf57912d6d3.tar.gz
Null password should ask for random
Diffstat (limited to 'eBones')
-rw-r--r--eBones/kdb_edit/kdb_edit.c6
-rw-r--r--eBones/usr.sbin/kdb_edit/kdb_edit.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/eBones/kdb_edit/kdb_edit.c b/eBones/kdb_edit/kdb_edit.c
index 438317f..00c2308 100644
--- a/eBones/kdb_edit/kdb_edit.c
+++ b/eBones/kdb_edit/kdb_edit.c
@@ -8,7 +8,7 @@
* i.e., users or services.
*
* from: kdb_edit.c,v 4.2 90/01/09 16:05:09 raeburn Exp $
- * $Id: kdb_edit.c,v 1.1.1.1 1994/09/30 14:49:56 csgr Exp $
+ * $Id: kdb_edit.c,v 1.2 1995/05/30 06:40:41 rgrimes Exp $
*/
/*
@@ -17,7 +17,7 @@
#ifndef lint
static char rcsid[] =
-"$Id: kdb_edit.c,v 1.1.1.1 1994/09/30 14:49:56 csgr Exp $";
+"$Id: kdb_edit.c,v 1.2 1995/05/30 06:40:41 rgrimes Exp $";
#endif lint
#include <stdio.h>
@@ -260,7 +260,7 @@ change_principal()
des_read_pw_string(pw_str, sizeof pw_str,
"\nNew Password: ", TRUE);
#endif
- if (!strcmp(pw_str, "RANDOM")) {
+ if (pw_str[0] == '\0' || !strcmp(pw_str, "RANDOM")) {
printf("\nRandom password [y] ? ");
s_gets(temp, sizeof(temp)-1);
if (!strcmp("n", temp) || !strcmp("N", temp)) {
diff --git a/eBones/usr.sbin/kdb_edit/kdb_edit.c b/eBones/usr.sbin/kdb_edit/kdb_edit.c
index 438317f..00c2308 100644
--- a/eBones/usr.sbin/kdb_edit/kdb_edit.c
+++ b/eBones/usr.sbin/kdb_edit/kdb_edit.c
@@ -8,7 +8,7 @@
* i.e., users or services.
*
* from: kdb_edit.c,v 4.2 90/01/09 16:05:09 raeburn Exp $
- * $Id: kdb_edit.c,v 1.1.1.1 1994/09/30 14:49:56 csgr Exp $
+ * $Id: kdb_edit.c,v 1.2 1995/05/30 06:40:41 rgrimes Exp $
*/
/*
@@ -17,7 +17,7 @@
#ifndef lint
static char rcsid[] =
-"$Id: kdb_edit.c,v 1.1.1.1 1994/09/30 14:49:56 csgr Exp $";
+"$Id: kdb_edit.c,v 1.2 1995/05/30 06:40:41 rgrimes Exp $";
#endif lint
#include <stdio.h>
@@ -260,7 +260,7 @@ change_principal()
des_read_pw_string(pw_str, sizeof pw_str,
"\nNew Password: ", TRUE);
#endif
- if (!strcmp(pw_str, "RANDOM")) {
+ if (pw_str[0] == '\0' || !strcmp(pw_str, "RANDOM")) {
printf("\nRandom password [y] ? ");
s_gets(temp, sizeof(temp)-1);
if (!strcmp("n", temp) || !strcmp("N", temp)) {
OpenPOWER on IntegriCloud