summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-02-06 12:40:20 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-02-06 12:40:20 +0000
commit1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b (patch)
tree8a6ae4d84dc8238a82f7b7b7b7d2666c091f80c3
parenta1bf4e218255bf7b70cb5ef115e61064030666ba (diff)
downloadmailutils-1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b.tar.gz
mailutils-1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b.tar.bz2
(read_bulletin_db): Return success if db does not exist.
-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.