shlomif / fortune-mod

Implementation of the Unix fortune command for displaying a random quotation, for Linux and other systems.
http://www.shlomifish.org/open-source/projects/fortune-mod/
Other
428 stars 60 forks source link

Fix respecting LOCALDIR and COOKIEDIR #69

Closed thesamesam closed 2 years ago

thesamesam commented 2 years ago

The intention of LOCALDIR seems to be to allow local cookies to be provided by the sysadmin in e.g. /usr/local/share/fortune, but if set, before this patch, even cookies distributed by upstream were stored there (and nothing in COOKIEDIR, e.g. /usr/share/fortune - https://bugs.gentoo.org/865809).

Originally, we were setting LOCALDIR=COOKIEDIR=/usr/share/fortune to workaround the issue, but see https://bugs.gentoo.org/857246.

Signed-off-by: Sam James sam@gentoo.org

shlomif commented 2 years ago

merged, thanks

thesamesam commented 2 years ago

Thanks!