From a81ffaded4bb9be480f3297b45aeffa7d87adde2 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 6 Dec 2004 21:15:29 +0000 Subject: [PATCH] - continue to load even if the system.eet file dosen't exist. This file isn't strictly necessary and we can continue without it. SVN revision: 12377 --- legacy/ecore/src/lib/ecore_config/ecore_config.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config.c b/legacy/ecore/src/lib/ecore_config/ecore_config.c index fc0e7486b5..c87066b7ce 100644 --- a/legacy/ecore/src/lib/ecore_config/ecore_config.c +++ b/legacy/ecore/src/lib/ecore_config/ecore_config.c @@ -1569,9 +1569,12 @@ _ecore_config_system_load(void) if ((buf = malloc(PATH_MAX * sizeof(char)))) { snprintf(buf, PATH_MAX, "%s/.e/config.eet", p); - if (ecore_config_file_load(buf) != 0) - if (ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet") != 0) - return ECORE_CONFIG_ERR_NOFILE; + if (ecore_config_file_load(buf) != 0) { + /* even if this file (system.eet) dosen't exist we can + * continue without it as it isn't striclty necessary. + */ + ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet"); + } sys = __ecore_config_bundle_local->data; while (sys) {