aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-10 00:04:28 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-10 00:04:28 +0000
commit666ab132969c8f631b22e338504bf44f3bf0f85e (patch)
tree951943c2bccaf8531fd563f04d43bb79a7e34392
parentea58364862d90afd68c987a586218c3e2b036d88 (diff)
downloadports-666ab132969c8f631b22e338504bf44f3bf0f85e.tar.gz
ports-666ab132969c8f631b22e338504bf44f3bf0f85e.zip
qpopper does not properly check for an expired account, fix it with
strategy both from src/usr.bin/login/login.c as of rev 1.51.2.12 and submitter Submitted by: Alan Batie <alan@batie.org>
Notes
Notes: svn path=/head/; revision=47586
-rw-r--r--mail/qpopper/files/patch-popper::pop_pass.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/qpopper/files/patch-popper::pop_pass.c b/mail/qpopper/files/patch-popper::pop_pass.c
new file mode 100644
index 000000000000..109efd917f03
--- /dev/null
+++ b/mail/qpopper/files/patch-popper::pop_pass.c
@@ -0,0 +1,21 @@
+--- 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 );
+ }
+