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