]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add search of LOCALBASE/share/calendar for calendars supplied by a port.
authorse <se@FreeBSD.org>
Fri, 23 Oct 2020 09:22:23 +0000 (09:22 +0000)
committerse <se@FreeBSD.org>
Fri, 23 Oct 2020 09:22:23 +0000 (09:22 +0000)
commit17942f39d3bb1bf6e3b9363f43b55657882b0b41
tree3eb5443a11bb332a8eb5c605f74e08f910158cbd
parentf1c497c90739ca487e73d8b3ed75f284fb1b86cd
Add search of LOCALBASE/share/calendar for calendars supplied by a port.

Calendar files in LOCALBASE override similarily named ones in the base
system. This could easily be changed if the base system calendars should
have precedence, but it could lead to a violation of POLA since then the
port's files were ignored unless those in base have been deleted.

There was no definition of _PATH_LOCALBASE in paths.h, but verbatim uses
of /usr/local existed for _PATH_DEFPATH. Use _PATH_LOCALBASE here to ease
a consistent modification of this prefix.

Reviewed by: imp, pfg
Differential Revision: https://reviews.freebsd.org/D26882
include/paths.h
usr.bin/calendar/io.c
usr.bin/calendar/pathnames.h