1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

fix inverted exit status of fortune -m;

bug reported and patch provided
by Tilo Stritzky <lfsdc at gmx dot de> on bugs@;
OK martijn@
This commit is contained in:
schwarze 2021-01-02 21:35:11 +00:00
parent b0c4c90218
commit 6e88d42dcd

View File

@ -1,4 +1,4 @@
/* $OpenBSD: fortune.c,v 1.61 2020/12/15 14:06:32 zhuk Exp $ */
/* $OpenBSD: fortune.c,v 1.62 2021/01/02 21:35:11 schwarze Exp $ */
/* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */
/*-
@ -160,7 +160,7 @@ main(int ac, char *av[])
getargs(ac, av);
if (Match)
return find_matches() != 0;
return find_matches() == 0;
init_prob();
if ((Short_only && minlen_in_list(File_list) > SLEN) ||