Bug#929706: sgml-base: preinst may fail *silently*
Package: sgml-base
Version: 1.29
Tags: patch
User: treinen@debian.org
Usertags: colis-shparser
Hello,
the preinst of sgml-base contains
if [ ! -d /var/lib/sgml-base ]
then
mkdir /var/lib/sgml-base 2>/dev/null
fi
and then the same for /etc/sgml. The problem is that this fails
when /var/lib/sgml-base or /etc/sgml is a regular file, and will do
that without any error message.
I suggest to replace the whole preinst script by
if [ "$1" = "install" -o "$1" = "upgrade" ]
then
mkdir -p /var/lib/sgml-base /etc/sgml
fi
-Ralf.
--
Ralf Treinen
Institut de Recherche en Informatique Fondamentale
Équipe Preuves, Programmes et Systèmes
Université Paris Diderot, Paris, France.
http://www.irif.fr/~treinen/
Reply to: