From 9ede657a9bc5c24f964d065e2cfaa429008c19ec Mon Sep 17 00:00:00 2001 From: ekorh475 Date: Wed, 9 Nov 2016 12:55:35 +0200 Subject: [PATCH] Change error message when permissions on .secrets are wrong If the user running MaxScale could open the .secrets-file and the file permissions were anything other than owner:read, the secrets_readkeys() would fail with error message "Ignoring secrets file , invalid permissions." Now the message is more accurate in stating the expected permissions. --- server/core/secrets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/secrets.c b/server/core/secrets.c index d5edb927c..e459326f3 100644 --- a/server/core/secrets.c +++ b/server/core/secrets.c @@ -153,8 +153,8 @@ secrets_readKeys(const char* path) if (secret_stats.st_mode != (S_IRUSR | S_IFREG)) { close(fd); - MXS_ERROR("Ignoring secrets file " - "%s, invalid permissions.", + MXS_ERROR("Ignoring secrets file %s, invalid permissions." + "The only permission on the file should be owner:read.", secret_file); return NULL; }