SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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) {