summaryrefslogtreecommitdiff
path: root/pop3d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-21 14:20:15 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-10-21 14:25:49 +0300
commitaccf1d99e04d805b959df61c72ac62fb0b039059 (patch)
treedccd53da83afbea288a548c12b66f8cc4ac87bda /pop3d
parent38ff031904226ea8ccace1a6a9dc8d8b0f6367fe (diff)
downloadmailutils-accf1d99e04d805b959df61c72ac62fb0b039059.tar.gz
mailutils-accf1d99e04d805b959df61c72ac62fb0b039059.tar.bz2
Fix locking in pop3 and imap4d. This complements d0769b4f.
* lib/manlock.c (mailbox_open_and_lock): Open mailbox before retrieving its locker, otherwise it is always NULL. * pop3d/pop3d.c (main): Enforce mandatory locking.
Diffstat (limited to 'pop3d')
-rw-r--r--pop3d/pop3d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index 043e2f1d6..9a5f47d2f 100644
--- a/pop3d/pop3d.c
+++ b/pop3d/pop3d.c
@@ -340,6 +340,7 @@ main (int argc, char **argv)
mu_alloc_die_hook = pop3d_alloc_die;
mu_log_syslog = 1;
+ manlock_mandatory_locking = 1;
if (mu_app_init (&argp, pop3d_argp_capa, pop3d_cfg_param,
argc, argv, 0, NULL, server))

Return to:

Send suggestions and report system problems to the System administrator.