Bug 145 - Silently ignore missing .secrets file

This commit is contained in:
Mark Riddoch
2013-08-19 15:36:26 +02:00
parent 05a3978442
commit b1c398e944
2 changed files with 4 additions and 4 deletions

View File

@ -67,6 +67,10 @@ int fd;
home = "/usr/local/skysql/MaxScale";
sprintf(secret_file, "%s/etc/.secrets", home);
/* Silently check for a .secrets file */
if (access(secret_file, R_OK) == -1)
return NULL;
/* open secret file */
if ((fd = open(secret_file, O_RDONLY)) < 0)
{