summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-14 21:31:30 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-14 21:31:30 +0000
commit684f1ab6d4ba2c958192d784ed91298ef2d71d90 (patch)
tree181e83246bb78f4df51772f063ba81d117c2f0c3
parent1def9a3944af91cb21d86ce3a8ffe85736205470 (diff)
Dont' write a message to syslog when /etc/avahi/hosts does not exist
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1136 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-daemon/static-hosts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c
index 8b1eb58..aba96f7 100644
--- a/avahi-daemon/static-hosts.c
+++ b/avahi-daemon/static-hosts.c
@@ -155,7 +155,8 @@ void static_hosts_load(int in_chroot) {
if (!(f = fopen(filename, "r")))
{
- avahi_log_error ("Failed to open static hosts file: %s", strerror (errno));
+ if (errno != ENOENT)
+ avahi_log_error ("Failed to open static hosts file: %s", strerror (errno));
return;
}