jeff@voder.UUCP (Jeff Gilliam) (11/21/86)
Index: games/fortune/fortune.c 4.3BSD Description: If given *both* the -s (short fortunes only) and -l (long fortunes only) flags fortune will loop endlessly. This can be annoying when people call fortune from their .logout. Repeat-By: /usr/games/fortune -sl Fix: Index: fortune.c diff -c -r1.1 -r1.2 *** /tmp/,RCSt1019296 Fri Nov 21 03:05:20 1986 --- /tmp/,RCSt2019296 Fri Nov 21 03:05:21 1986 *************** *** 1,4 **** ! /* $Header: fortune.c,v 1.1 86/11/04 17:47:50 root Exp $ */ # include <sys/types.h> # include <stdio.h> --- 1,4 ---- ! /* $Header: fortune.c,v 1.2 86/11/04 17:48:21 root Exp $ */ # include <sys/types.h> # include <stdio.h> *************** *** 167,175 **** --- 167,177 ---- break; case 's': /* short ones only */ Sflag++; + Lflag = 0; break; case 'l': /* long ones only */ Lflag++; + Sflag = 0; break; case 'o': /* offensive ones only */ Oflag++; -- Jeff Gilliam {ucbvax,pyramid,nsc}!voder!jeff