mergebase.sh and periodic.conf
Dejan Lesjak
dejan.lesjak at ijs.si
Fri May 18 13:12:49 UTC 2007
On Friday 18 of May 2007, Vasil Dimov wrote:
> Hi,
>
> After upgrading to X 7.2 (and running mergebase.sh) I get the PHP
> vulnerabilities twice in my nightly security mail. This is because
> /etc/defaults/periodic.conf reads:
>
> local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic"
>
> and there is this file /usr/local/etc/periodic/security/410.portaudit
> over there.
>
> /etc/periodic.conf (with corrected local_periodic) was not created by
> mergebase.sh
>
> The reason is this (this is from mergebase.sh):
>
> $ . /etc/defaults/periodic.conf && source_periodic_confs && echo
> ${local_periodic} $ echo $?
> 1
> $
>
> $ . /etc/defaults/periodic.conf && source_periodic_confs ; echo
> ${local_periodic} /usr/local/etc/periodic /usr/X11R6/etc/periodic
> $
>
> The following self-explanatory patch should be applied to
> /etc/defaults/periodic.conf:
>
> --- patch begins here ---
> --- periodic.conf.orig Fri May 18 09:36:27 2007
> +++ periodic.conf Fri May 18 09:56:25 2007
> @@ -254,7 +254,9 @@
> ;;
> *)
> sourced_files="${sourced_files}:$i:"
> - [ -r $i ] && . $i
> + if [ -r $i ] ; then
> + . $i
> + fi
> ;;
> esac
> done
> --- patch ends here ---
>
> Or mergebase.sh should be changed to
>
> . /etc/defaults/periodic.conf && source_periodic_confs ; echo
> ${local_periodic}
It has already been fixed in git repository exactly like this :-)
http://git.xbsd.org/?p=freebsd/ports.git;a=commitdiff;h=ad386ef316b531e769c9a97243455f04302278bd
so it will come in CVS. It happens when there are neither /etc/periodic.conf
nor /etc/periodic.conf.local present (see the archives of this list).
Dejan
More information about the freebsd-x11
mailing list