Add swp files

This commit is contained in:
Mark Riddoch
2014-10-21 15:30:32 +01:00
parent d065be4824
commit 502c78de2b
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -30,6 +30,7 @@ depend.mk
*~ *~
*# *#
.#* .#*
._*
# Vi swap files # Vi swap files
.*.swp .*.swp

View File

@ -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
{ {