[Bug 237768] fortune(6): /usr/share/games/fortune is populated, No fortunes found in /usr/share/games/fortune:/usr/local/share/games/fortune.

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 17 Dec 2022 06:10:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237768

Tatsuki Makino <tatsuki_makino@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tatsuki_makino@hotmail.com

--- Comment #4 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
Murphy's Law and others were removed from fortune here.
https://cgit.freebsd.org/src/commit/usr.bin/fortune?id=0538d7bbe620fafcdf296305bcd8aad2cb7d24f1

When there were no arguments, one file called fortunes is automatically added
here.
https://cgit.freebsd.org/src/tree/usr.bin/fortune/fortune/fortune.c?id=195f1b124da4bf73d951cd251dffd9485672fe0a#n387

It seems that xxx and xxx.dat in the fortune file must be a pair, so the revert
method challenged above is missing something.
The following procedure will restore it.

cd /usr/share/games/fortune
ln -s freebsd-tips fortunes
ln -s freebsd-tips.dat fortunes.dat
fortune

I think we should make this symlink the default to create :)

-- 
You are receiving this mail because:
You are the assignee for the bug.