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 <path>, invalid permissions." Now the message is more accurate in stating the expected permissions.
This commit is contained in:
parent
cc54d80a8b
commit
9ede657a9b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user