aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2026-08-28 00:57:53 +0000
committerDevin Teske <dteske@FreeBSD.org>2026-08-28 00:57:53 +0000
commit14df6e1e686ef1908c107932d9224d3f3fbc6b51 (patch)
tree168e63f9cc15cbebad3108a6a83301f09651f457 /sys/cddl
parent2e376cca379b744ce24c849aced684bf770c0f75 (diff)
fortune: fall back to all databases if fortunes is missingHEADmain
With no file argument, fortune looks for a database named fortunes in FORTDIR. The base system has not shipped that file since 0538d7bbe620 (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
Diffstat (limited to 'sys/cddl')
0 files changed, 0 insertions, 0 deletions