summaryrefslogtreecommitdiff
path: root/pop3d/bulletin.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3d/bulletin.c')
-rw-r--r--pop3d/bulletin.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/pop3d/bulletin.c b/pop3d/bulletin.c
index 8f7307cda..6230d0409 100644
--- a/pop3d/bulletin.c
+++ b/pop3d/bulletin.c
@@ -130,9 +130,17 @@ read_bulletin_db (size_t *pnum)
rc = mu_dbm_open (bulletin_db_name, &db, MU_STREAM_READ, 0660);
if (rc)
{
- mu_error (_("Unable to open bulletin db for reading: %s"),
- mu_strerror (errno));
- return rc;
+ if (errno == ENOENT)
+ {
+ *pnum = 0;
+ return 0;
+ }
+ else
+ {
+ mu_error (_("Unable to open bulletin db for reading: %s"),
+ mu_strerror (errno));
+ return rc;
+ }
}
memset (&key, 0, sizeof key);

Return to:

Send suggestions and report system problems to the System administrator.