Add swp files
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -30,6 +30,7 @@ depend.mk
|
|||||||
*~
|
*~
|
||||||
*#
|
*#
|
||||||
.#*
|
.#*
|
||||||
|
._*
|
||||||
|
|
||||||
# Vi swap files
|
# Vi swap files
|
||||||
.*.swp
|
.*.swp
|
||||||
|
|||||||
@ -65,6 +65,7 @@ MAXKEYS *keys;
|
|||||||
struct stat secret_stats;
|
struct stat secret_stats;
|
||||||
int fd;
|
int fd;
|
||||||
int len;
|
int len;
|
||||||
|
static int reported = 0;
|
||||||
|
|
||||||
home = getenv("MAXSCALE_HOME");
|
home = getenv("MAXSCALE_HOME");
|
||||||
|
|
||||||
@ -80,12 +81,16 @@ int len;
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
if (eno == ENOENT)
|
if (eno == ENOENT)
|
||||||
{
|
{
|
||||||
LOGIF(LM, (skygw_log_write(
|
if (!reported)
|
||||||
|
{
|
||||||
|
LOGIF(LM, (skygw_log_write(
|
||||||
LOGFILE_MESSAGE,
|
LOGFILE_MESSAGE,
|
||||||
"Encrypted password file %s can't be accessed "
|
"Encrypted password file %s can't be accessed "
|
||||||
"(%s). Password encryption is not used.",
|
"(%s). Password encryption is not used.",
|
||||||
secret_file,
|
secret_file,
|
||||||
strerror(eno))));
|
strerror(eno))));
|
||||||
|
reported = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user