mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
fix vpopmail support
Approved by: maintainer Feature safe: yes
This commit is contained in:
parent
3db6a0bb0a
commit
551259fe10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286789
2 changed files with 23 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= dovecot
|
||||
PORTVERSION= 2.0.16
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail ipv6
|
||||
MASTER_SITES= http://www.dovecot.org/releases/${PORTVERSION:R}/
|
||||
|
||||
|
|
22
mail/dovecot2/files/patch-src-auth-passdb-vpopmail.c
Normal file
22
mail/dovecot2/files/patch-src-auth-passdb-vpopmail.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff -r a8c2e04307c6 src/auth/passdb-vpopmail.c
|
||||
--- src/auth/passdb-vpopmail.c Wed Nov 23 19:04:15 2011 +0200
|
||||
+++ src/auth/passdb-vpopmail.c Fri Dec 02 23:39:55 2011 +0200
|
||||
@@ -75,7 +75,8 @@
|
||||
password = NULL;
|
||||
*result_r = PASSDB_RESULT_USER_DISABLED;
|
||||
} else {
|
||||
- if (vpw->pw_clear_passwd != NULL) {
|
||||
+ if (vpw->pw_clear_passwd != NULL &&
|
||||
+ *vpw->pw_clear_passwd != '\0') {
|
||||
password = t_strdup_noconst(vpw->pw_clear_passwd);
|
||||
*cleartext = TRUE;
|
||||
} else if (!*cleartext)
|
||||
@@ -120,7 +121,7 @@
|
||||
enum passdb_result result;
|
||||
const char *scheme, *tmp_pass;
|
||||
char *crypted_pass;
|
||||
- bool cleartext;
|
||||
+ bool cleartext = FALSE;
|
||||
int ret;
|
||||
|
||||
crypted_pass = vpopmail_password_lookup(request, &cleartext, &result);
|
Loading…
Add table
Reference in a new issue