+v2.9.6 updates to cracklib-words to add a bunch of other dictionary lists
+ migration to github
+ patch to add some particularly bad cases to the cracklib small dictionary (Matthew Miller)
+ patch to fix issue with sort and locale (Mark Sirota)
v2.9.5 fix matching against first password in dictionary (Anton Dobkin)
v2.9.4 remove doubled prototype
v2.9.3 expose additional functions externally
unsigned long readed;
unsigned long wrote;
PWDICT *pwp;
- char buffer[STRINGSIZE];
+ char buffer[STRINGSIZE], prev[STRINGSIZE];
char *file;
if (argc <= 1)
}
wrote = 0;
+ prev[0] = '\0';
for (readed = 0; fgets(buffer, STRINGSIZE, stdin); /* nothing */)
{
continue;
}
+ /*
+ * If this happens, strcmp() in FindPW() in packlib.c will be unhappy.
+ */
+ if (strcmp(buffer, prev) < 0)
+ {
+ fprintf(stderr, "warning: input out of order: '%s' should not follow '%s' (line %lu)\n", buffer, prev, readed);
+ }
+ strcpy(prev, buffer);
+
if (PutPW(pwp, buffer))
{
fprintf(stderr, "error: PutPW '%s' line %luy\n", buffer, readed);