freebsd-ports/mail/teapop/files/patch-ac
Jim Mock c5fe748506 Fix a problem where teapop wasn't fully deleting messages and dumping
core.  Bump PORTREVISION.

Submitted by:	John Brooks <john@day-light.com>
2002-04-09 07:18:44 +00:00

13 lines
358 B
Text

--- teapop/pop_lock.c.orig Sun Mar 31 09:12:59 2002
+++ teapop/pop_lock.c Sun Mar 31 09:14:38 2002
@@ -239,6 +239,10 @@
{
struct flock lock_data;
+ /* xpinfo is unset if no mailbox is opened */
+ if (xpinfo == NULL)
+ return;
+
/* Maildir OR mbox */
if (xpinfo->mboxtype == 1 || xpinfo->locktype & LOCK_DOTLOCK) {
(void)unlink(xpinfo->dotlock);