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:
@ -175,8 +175,8 @@ secrets_readKeys(const char* path)
|
|||||||
if (secret_stats.st_mode != (S_IRUSR | S_IFREG))
|
if (secret_stats.st_mode != (S_IRUSR | S_IFREG))
|
||||||
{
|
{
|
||||||
close(fd);
|
close(fd);
|
||||||
MXS_ERROR("Ignoring secrets file "
|
MXS_ERROR("Ignoring secrets file %s, invalid permissions."
|
||||||
"%s, invalid permissions.",
|
"The only permission on the file should be owner:read.",
|
||||||
secret_file);
|
secret_file);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user