]> git.meshlink.io Git - catta/commitdiff
Dont' write a message to syslog when /etc/avahi/hosts does not exist
authorLennart Poettering <lennart@poettering.net>
Tue, 14 Feb 2006 21:31:30 +0000 (21:31 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Feb 2006 21:31:30 +0000 (21:31 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1136 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/static-hosts.c

index 8b1eb58e281533050c06fa9d784c4f138d95fc22..aba96f720e82e548a4680e54511fce29dc88f7bf 100644 (file)
@@ -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;
     }