diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-02-06 12:40:20 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-02-06 12:40:20 +0000 |
commit | 1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b (patch) | |
tree | 8a6ae4d84dc8238a82f7b7b7b7d2666c091f80c3 | |
parent | a1bf4e218255bf7b70cb5ef115e61064030666ba (diff) | |
download | mailutils-1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b.tar.gz mailutils-1c1ea526c72657a6f0b825ee2a6ddb7a5dad6e9b.tar.bz2 |
(read_bulletin_db): Return success if db does not exist.
-rw-r--r-- | pop3d/bulletin.c | 14 |
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); |