Page MenuHomeFreeBSD

D12571.id33646.diff
No OneTemporary

D12571.id33646.diff

Index: head/sbin/init/init.c
===================================================================
--- head/sbin/init/init.c
+++ head/sbin/init/init.c
@@ -919,7 +919,7 @@
_exit(0);
password = crypt(clear, pp->pw_passwd);
bzero(clear, _PASSWORD_LEN);
- if (password == NULL ||
+ if (password != NULL &&
strcmp(password, pp->pw_passwd) == 0)
break;
warning("single-user login failed\n");
Index: head/usr.bin/lock/lock.c
===================================================================
--- head/usr.bin/lock/lock.c
+++ head/usr.bin/lock/lock.c
@@ -223,7 +223,7 @@
if (usemine) {
s[strlen(s) - 1] = '\0';
cryptpw = crypt(s, mypw);
- if (cryptpw == NULL || !strcmp(mypw, cryptpw))
+ if (cryptpw != NULL && !strcmp(mypw, cryptpw))
break;
}
else if (!strcmp(s, s1))

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 8, 9:20 PM (13 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28499081
Default Alt Text
D12571.id33646.diff (828 B)

Event Timeline