From 46528c887469267ea644558a28451b9b882e102e Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Thu, 18 Nov 2010 00:45:39 +0200 Subject: [PATCH] ladishd: dont log error when the recent store does not exist --- daemon/recent_store.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/recent_store.c b/daemon/recent_store.c index d2a60a15..659333c1 100644 --- a/daemon/recent_store.c +++ b/daemon/recent_store.c @@ -88,7 +88,11 @@ ladish_recent_store_load( fd = open(store_ptr->path, O_RDONLY); if (fd == -1) { - log_error("open(%s) failed: %d (%s)", store_ptr->path, errno, strerror(errno)); + if (errno != ENOENT) + { + log_error("open(%s) failed: %d (%s)", store_ptr->path, errno, strerror(errno)); + } + goto exit; }