Files
freebsd/usr.bin
Devin Teske 14df6e1e68 fortune: fall back to all databases if fortunes is missing
With no file argument, fortune looks for a database named fortunes
in FORTDIR. The base system has not shipped that file since
0538d7bbe6 (FreeBSD 12), only freebsd-tips, so the default
invocation failed even though a valid database remained. Callers
such as xlockmore's marquee and nose modes (fortune -s) then
displayed the error as the epigram.

If the named fortunes file is absent, scan every database in the
existing search path. /usr/local/share/games/fortune stays on that
path so fortune-mod-* packages keep working; when
fortune-mod-freebsd-classic restores the fortunes file, it is still
preferred. fortune -f with no arguments lists the same files that
would be searched.

MFC after:	1 week

Reviewed by:	ziaee, fuz
Differential Revision:	https://reviews.freebsd.org/D59057
2026-08-27 17:57:53 -07:00
..
2026-04-14 09:02:58 -04:00
2026-03-15 23:02:06 +03:30
2026-07-05 11:31:49 -07:00
2023-10-04 18:12:03 +02:00
2026-08-11 14:29:44 +03:30
2026-04-14 09:02:58 -04:00
2024-11-27 13:22:50 +01:00
2025-05-13 11:33:08 +01:00
2025-12-23 11:36:39 +01:00
2026-06-22 17:06:14 -06:00
2025-11-03 18:21:58 -05:00
2026-06-03 22:50:38 +02:00
2026-03-28 09:51:48 +01:00
2026-07-13 08:43:46 +02:00
2026-03-01 18:03:13 +01:00
2023-11-26 22:23:30 -07:00
2026-01-12 00:51:05 -07:00
2026-04-29 17:15:30 +02:00
2024-10-14 10:26:17 -07:00
2024-10-14 10:26:17 -07:00
2025-08-08 01:34:07 +02:00
2026-08-23 22:54:14 +00:00
2025-11-14 08:36:28 -06:00
2025-08-12 19:21:12 +02:00
2026-08-14 23:21:18 -07:00
2026-06-05 00:41:41 +02:00
2024-10-14 10:26:17 -07:00
2024-11-14 16:59:43 -04:00
2025-10-06 17:30:17 +02:00
2026-08-03 15:09:03 +01:00
2026-06-22 17:06:14 -06:00
2025-10-02 02:37:35 +01:00
2026-08-24 20:45:50 +00:00
2026-08-03 15:08:13 +01:00
2024-12-12 09:24:31 +01:00
2026-03-01 09:36:15 -07:00
2024-11-27 15:26:51 +01:00
2025-05-20 04:29:49 +00:00
2026-08-03 15:04:16 +01:00
2026-04-14 09:02:58 -04:00
2026-08-03 15:06:18 +01:00
2026-04-25 02:16:23 +00:00
2026-05-07 20:45:14 +02:00
2026-07-30 12:11:06 +02:00
2025-10-02 08:24:52 +00:00
2025-05-27 22:24:22 +02:00
2024-10-14 10:26:17 -07:00
2026-01-14 16:28:57 +01:00
2026-05-25 18:52:15 +02:00
2025-07-26 18:44:43 +02:00
2025-09-30 09:14:46 +01:00
2026-04-16 13:34:56 -07:00
2026-08-17 18:04:35 +02:00
2026-04-08 14:22:45 -07:00
2026-07-07 08:47:36 +02:00