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
.*.swp

View File

@ -65,6 +65,7 @@ MAXKEYS *keys;
struct stat secret_stats;
int fd;
int len;
static int reported = 0;
home = getenv("MAXSCALE_HOME");
@ -80,12 +81,16 @@ int len;
errno = 0;
if (eno == ENOENT)
{
LOGIF(LM, (skygw_log_write(
if (!reported)
{
LOGIF(LM, (skygw_log_write(
LOGFILE_MESSAGE,
"Encrypted password file %s can't be accessed "
"(%s). Password encryption is not used.",
secret_file,
strerror(eno))));
reported = 1;
}
}
else
{