summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/backend/bdb_ro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/backend/bdb_ro.c b/lib/backend/bdb_ro.c
index 74569cb03..222e25600 100644
--- a/lib/backend/bdb_ro.c
+++ b/lib/backend/bdb_ro.c
@@ -160,8 +160,7 @@ static struct bdb_db *bdb_open(const char *name)
struct bdb_db *db;
fd = open(name, O_RDONLY);
- if (!fd) {
- rpmlog(RPMLOG_ERR, "%s: %s\n", name, strerror(errno));
+ if (fd == -1) {
return NULL;
}
db = xcalloc(1, sizeof(*db));