1 diff -urN john-1.6.orig/src/config.c john-1.6/src/config.c
2 --- john-1.6.orig/src/config.c Thu Dec 3 01:29:50 1998
3 +++ john-1.6/src/config.c Wed Dec 9 13:08:02 1998
9 +#include <sys/types.h>
16 char line[LINE_BUFFER_SIZE];
19 + struct passwd *haslo;
21 + haslo = getpwuid(getuid());
22 + sprintf(name2, "%s/.john.ini", haslo->pw_dir);
23 if (cfg_database) return;
25 - if (!(file = fopen(path_expand(name), "r")))
26 - pexit("fopen: %s", path_expand(name));
28 + if (!(file = fopen(name2, "r")))
30 + if (!(file = fopen(path_expand(name), "r")))
31 + pexit("fopen: ~/.john.ini or %s", path_expand(name));
35 while (fgetl(line, sizeof(line), file))