]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add search of LOCALBASE/share/calendar for calendars supplied by a port.
authorStefan Eßer <se@FreeBSD.org>
Fri, 23 Oct 2020 09:22:23 +0000 (09:22 +0000)
committerStefan Eßer <se@FreeBSD.org>
Fri, 23 Oct 2020 09:22:23 +0000 (09:22 +0000)
commit34b38e1245edc730c4a5707cac2121780031770b
tree3eb5443a11bb332a8eb5c605f74e08f910158cbd
parenta71074e0af2b37a3f9082bafb8a0a0feb3cd4515
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