opnsense-ports/mail/qpopper/files/patch-popper__pop_pass.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
514 B
C

--- popper/pop_pass.c.orig Sat Jun 2 02:24:13 2001
+++ popper/pop_pass.c Sat Sep 8 00:26:27 2001
@@ -1226,6 +1226,18 @@
return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_PW, p->user ) );
}
+# ifdef FREEBSD
+
+ /*
+ * Nor from expired accounts
+ */
+ if (pw->pw_expire != 0 && pw->pw_expire <= time(NULL)) {
+ sleep ( SLEEP_SECONDS );
+ return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_ACEXP, p->user ) );
+ }
+
+# endif /* FreeBSD */
+
return ( POP_SUCCESS );
}