Skip to content

Commit

Permalink
Rephrase init database warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hvhaugwitz committed May 4, 2020
1 parent fcf0f3a commit eb86e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commandconf.c
@@ -1,6 +1,6 @@
/* aide, Advanced Intrusion Detection Environment
*
* Copyright (C) 1999-2006,2010,2011,2013,2015,2016,2019 Rami Lehti, Pablo
* Copyright (C) 1999-2006,2010,2011,2013,2015,2016,2019,2020 Rami Lehti, Pablo
* Virolainen, Richard van den Berg, Hannes von Haugwitz
* $Header$
*
Expand Down
8 changes: 4 additions & 4 deletions src/gen_list.c
Expand Up @@ -1222,13 +1222,13 @@ void populate_tree(seltree* tree)
} else if (conf->limit!=NULL && add < 0) {
add_file_to_tree(tree,old,DB_OLD|DB_NEW,attr);
}else{
free_db_line(old);
free(old);
old=NULL;
if(!initdbwarningprinted){
error(3,_("WARNING: Old db contains a entry that shouldn\'t be there, run --init or --update\n"));
error(3,_("WARNING: old database entry '%s' has no matching rule, run --init or --update (this warning is only shown once)\n"), old->filename);
initdbwarningprinted=1;
}
free_db_line(old);
free(old);
old=NULL;
}
}
}
Expand Down

0 comments on commit eb86e78

Please sign in to comment.