Don't warn about missing listener file.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 1 Sep 2007 16:21:44 +0000 (18:21 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 1 Sep 2007 16:21:44 +0000 (18:21 +0200)
src/settings.c

index cc9f640d88fb4e6e8eea8d918df34871cff81d86..52c19ec498191fe5f7b9326f45e84ed644f57b70 100644 (file)
@@ -570,7 +570,8 @@ static void config_load_listeners(struct ctrlproxy_config *cfg)
        kf = g_key_file_new();
 
        if (!g_key_file_load_from_file(kf, filename, G_KEY_FILE_KEEP_COMMENTS, &error)) {
-               log_global(LOG_ERROR, "Can't parse configuration file '%s': %s", filename, error->message);
+               if (error->code != G_FILE_ERROR_NOENT)
+                       log_global(LOG_ERROR, "Can't parse configuration file '%s': %s", filename, error->message);
                g_free(filename);
                return;
        }