SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
mail/solid-pop3d/patches/patch-src_authenticate_c
Normal file
13
mail/solid-pop3d/patches/patch-src_authenticate_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/authenticate.c.orig Sun May 22 18:15:44 2016
|
||||
+++ src/authenticate.c Sun May 22 18:16:14 2016
|
||||
@@ -168,8 +168,8 @@ int _sp_authenticate_user(char *ausername, char *apass
|
||||
char *encrypted_passwd;
|
||||
struct passwd *pwentry;
|
||||
|
||||
- if ((pwentry = getpwnam(ausername)) == NULL) {
|
||||
- pop_log(pop_priority, "auth: getpwnam() failed");
|
||||
+ if ((pwentry = getpwnam_shadow(ausername)) == NULL) {
|
||||
+ pop_log(pop_priority, "auth: getpwnam_shadow() failed");
|
||||
return -1;
|
||||
};
|
||||
if (strcmp(pwentry->pw_passwd, "") == 0) {
|
Loading…
Add table
Add a link
Reference in a new issue