diff options
| author | Dima Ruban <dima@FreeBSD.org> | 1995-11-10 07:06:59 +0000 |
|---|---|---|
| committer | Dima Ruban <dima@FreeBSD.org> | 1995-11-10 07:06:59 +0000 |
| commit | 28b2e97b28de9a5c01627a893c86349314fadb23 (patch) | |
| tree | a80f5c2652b581e5e6457364b84c9a2f367ef78e /sbin/init | |
| parent | cf012590851baff5cc5e22d57fe23f3502b99984 (diff) | |
Notes
Diffstat (limited to 'sbin/init')
| -rw-r--r-- | sbin/init/init.c | 2 |
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:"); |
