1 From 76954aa028a897021a9bdcb0a1b5249e2652f7b6 Mon Sep 17 00:00:00 2001
2 From: Robbie Harwood <rharwood@redhat.com>
3 Date: Tue, 16 May 2017 14:16:23 -0400
4 Subject: [PATCH] Fix segfault when no config files are present
7 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
8 Reviewed-by: Simo Sorce <simo@redhat.com>
10 (cherry picked from commit df434333de34a13440857b511a4c60fbc6a71a5c)
12 proxy/src/gp_config.c | 7 ++++---
13 1 file changed, 4 insertions(+), 3 deletions(-)
15 diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
16 index b4ab90c..8fd60a3 100644
17 --- a/proxy/src/gp_config.c
18 +++ b/proxy/src/gp_config.c
19 @@ -844,16 +844,17 @@ int gp_config_init(const char *config_file, const char *config_dir,
22 ret = gp_config_from_file(config_file, ini_config, collision_flags);
23 - if (ret == ENOENT) {
24 - GPDEBUG("Expected config file %s but did not find it.\n",
26 + GPDEBUG("Error when trying to read config file %s.\n",
33 ret = gp_config_from_dir(config_dir, &ini_config, collision_flags);
35 + GPDEBUG("Error when trying to read config directory %s.\n",