openbsd-ports/net/popa3d/patches/patch-ab
brad 497554b415 add popa3d;
popa3d is a POP3 daemon by Solar Designer.

In order, its design goals are:
1. Security (to the extent that is possible with POP3 at all, of course).
2. Reliability (again, as limited by the mailbox format and the protocol).
3. RFC compliance (slightly relaxed to work with real-world POP3 clients).
4. Performance (limited by the more important goals above)
1999-09-10 22:07:34 +00:00

18 lines
504 B
Plaintext

--- pop_root.c.orig Thu Mar 25 05:25:55 1999
+++ pop_root.c Fri Sep 10 21:20:11 1999
@@ -140,8 +140,13 @@
*pw->pw_passwd == '*' || *pw->pw_passwd == '!')
crypt(pass, AUTH_DUMMY_SALT);
else
- if (!strcmp(crypt(pass, pw->pw_passwd), pw->pw_passwd))
+ if (!strcmp(crypt(pass, pw->pw_passwd), pw->pw_passwd)) {
+#if defined(__OpenBSD__)
+ /* zero out the password, obsd getpwnam cleaned up the rest */
+ bzero(pw->pw_passwd, strlen(pw->pw_passwd));
+#endif
return pw;
+ }
return NULL;
}