fe23ba
From c8cd3cecb8c8191ba40ec6c6a835f03c5adc5068 Mon Sep 17 00:00:00 2001
fe23ba
From: jkaluza <jkaluza@ec1272ba-9ed1-42ef-8245-99669996828e>
fe23ba
Date: Fri, 7 Nov 2014 12:13:12 +0000
fe23ba
Subject: [PATCH] Better error message when the config file has bad mode
fe23ba
fe23ba
Upstream-commit: 367640762bef15ac0850113c591e3de7193c1764
fe23ba
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
fe23ba
---
fe23ba
 config.c | 4 ++--
fe23ba
 1 file changed, 2 insertions(+), 2 deletions(-)
fe23ba
fe23ba
diff --git a/config.c b/config.c
fe23ba
index 700ad85..2a610de 100644
fe23ba
--- a/config.c
fe23ba
+++ b/config.c
fe23ba
@@ -795,8 +795,8 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
fe23ba
 
fe23ba
 	if (getuid() == ROOT_UID) {
fe23ba
 		if ((sb.st_mode & 07533) != 0400) {
fe23ba
-			message(MESS_DEBUG,
fe23ba
-				"Ignoring %s because of bad file mode.\n",
fe23ba
+			message(MESS_ERROR,
fe23ba
+				"Ignoring %s because of bad file mode - must be 0644 or 0444.\n",
fe23ba
 				configFile);
fe23ba
 			close(fd);
fe23ba
 			return 0;
fe23ba
-- 
fe23ba
2.13.5
fe23ba