Bug#261965: tetex-bin: bogus daily error message
On 29.07.04 Francesco Potorti` (pot@gnu.org) wrote:
Hi,
> This is what I get every day from cron:
> /etc/cron.daily/tetex-bin:
> chgrp: cannot access `/root/texmf/ls-R': No such file or directory
>
> The reason is that the daily coron tetex-bin script does not check
> to see if the files in the search path do in fact exist before
> accessing them. This patch solves the problem:
>
> cd /etc/cron.daily/
> diff -pub /etc/cron.daily/tetex-bin\~ /etc/cron.daily/tetex-bin
> --- /etc/cron.daily/tetex-bin~ 2003-08-09 10:25:54.000000000 +0200
> +++ /etc/cron.daily/tetex-bin 2004-07-29 10:56:31.000000000 +0200
> @@ -14,6 +14,7 @@ if [ -x "/usr/bin/mktexlsr" ]; then
> if [ $FHS = 1 ]; then
> LSRDBS=`kpsewhich --show-path=ls-R | sed -e 's/:/ /g'`
> for dbfile in ${LSRDBS}; do
> + if [ -s "$dbfile" ]; then
>
1. Well, not really. $dbfile gives you only the path to the ls-R
database. Either you check for -d or you check -s "$dbfile/ls-R".
> @@ -21,6 +22,7 @@ if [ -x "/usr/bin/mktexlsr" ]; then
> chgrp --dereference --quiet users $dbfile/ls-R
> ;;
> esac
2. In cron.daily of tetex 2.0.2-16 I can't see that chgrp command and
AFAICS that file hasn't changed in the CVS for 2 years. It seems to
be a local modification.
H.
--
sigmentation fault
Reply to: