1 diff -ur fortune-mod-9708/fortune/fortune.6 fortune-mod-9708-/fortune/fortune.6
2 --- fortune-mod-9708/fortune/fortune.6 Mon Apr 24 20:16:52 1995
3 +++ fortune-mod-9708-/fortune/fortune.6 Tue Jun 4 17:54:23 2002
5 number of characters in the message.
6 This is useful if it is executed as part of the logout procedure
7 to guarantee that the message can be read before the screen is cleared.
9 +Display source of fortune before it (i.e. file it comes from in []).
12 The user may specify alternate sayings.
13 diff -ur fortune-mod-9708/fortune/fortune.c fortune-mod-9708-/fortune/fortune.c
14 --- fortune-mod-9708/fortune/fortune.c Tue Jun 4 17:55:30 2002
15 +++ fortune-mod-9708-/fortune/fortune.c Tue Jun 4 17:47:52 2002
17 bool Offend = FALSE; /* offensive fortunes only */
18 bool All_forts = FALSE; /* any fortune allowed */
19 bool Equal_probs = FALSE; /* scatter un-allocated prob equally */
20 +bool Display_source = FALSE; /* display [fortune-file] before fortune */
23 bool Match = FALSE; /* dump fortunes matching a pattern */
26 (void) fprintf(stderr, "i");
28 - (void) fprintf(stderr, "losw]");
29 + (void) fprintf(stderr, "loswd]");
31 (void) fprintf(stderr, " [-m pattern]");
37 - while ((ch = getopt(argc, argv, "aDefilm:n:osvw")) != EOF)
38 + while ((ch = getopt(argc, argv, "aDefilm:n:osdvw")) != EOF)
40 - while ((ch = getopt(argc, argv, "aefilm:n:osvw")) != EOF)
41 + while ((ch = getopt(argc, argv, "aefilm:n:osdvw")) != EOF)
57 unsigned char line[BUFSIZ];
60 + printf("[%s]\n\n", fp->name);
63 fseek(fp->inf, (long) Seekpts[0], 0);
64 for (Fort_len = 0; fgets(line, sizeof line, fp->inf) != NULL &&