ladishd: dont log error when the recent store does not exist

This commit is contained in:
Nedko Arnaudov 2010-11-18 00:45:39 +02:00
parent 6c4e75c400
commit 46528c8874
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}