Skip to content

Commit

Permalink
don't skipnear if warnnear is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Sep 5, 2023
1 parent 80e1bd0 commit c7a8d75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ VEC_STRUCT(tstatsvec,struct tstatstruct);

static void printhelp(FILE *out,const char *progname)
{
fprintf(out,
// 0 1 2 3 4 5 6 7
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789
fprintf(out,
"Usage: %s FILTER [FILTER...] [OPTION]\n"
" %s -f FILTERFILE [OPTION]\n"
"Options:\n"
Expand Down Expand Up @@ -614,6 +614,8 @@ int main(int argc,char **argv)
"CAUTION: avoid using keys generated with the same password for unrelated\n"
" services, as single leaked key may help an attacker to regenerate\n"
" related keys; to silence this warning, pass --skipnear or --warnnear.\n");
if (pw_warnnear)
pw_skipnear = 0;
if (checkpointfile) {
memcpy(orig_determseed,determseed,sizeof(determseed));
// Read current checkpoint position if file exists
Expand Down

0 comments on commit c7a8d75

Please sign in to comment.