summaryrefslogtreecommitdiff
path: root/sbin/init
diff options
context:
space:
mode:
authorDima Ruban <dima@FreeBSD.org>1995-11-10 07:06:59 +0000
committerDima Ruban <dima@FreeBSD.org>1995-11-10 07:06:59 +0000
commit28b2e97b28de9a5c01627a893c86349314fadb23 (patch)
treea80f5c2652b581e5e6457364b84c9a2f367ef78e /sbin/init
parentcf012590851baff5cc5e22d57fe23f3502b99984 (diff)
Notes
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index a149672c495e..6ea623324e88 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -593,7 +593,7 @@ single_user()
*/
typ = getttynam("console");
pp = getpwnam("root");
- if (typ && (typ->ty_status & TTY_SECURE) == 0 && pp) {
+ if (typ && (typ->ty_status & TTY_SECURE) == 0 && pp && *pp->pw_passwd) {
write(2, banner, sizeof banner - 1);
for (;;) {
clear = getpass("Password:");