[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

set +e before executing scripts in pre/postinst scripts?



Hi,

Due to bash bug #23857, the installation of several daemon packages
will fail if `set -a' or `set -o allexport' has been used in the root
shell that executes dpkg.

Francesco Potorti` proposed to to make the pre- and post- installation
scripts set "+e" before executing a subscript.

Can this please be discussed here and perhaps made policy?

For the moment I'll implement it this way.

To reproduce this try:

set -a
set +a
dpkg -i .../sysklogd_1.3-26_i386.deb; echo $?

Regards,

	Joey

Bug#23857 http://www.infodrom.north.de/Debian/Bugs/db/23/23857.html (bash)
Bug#26015 http://www.infodrom.north.de/Debian/Bugs/db/26/26015.html (syklogd)

-- 
The good thing about standards is that there are so many to choose from.
	-- Andrew S. Tanenbaum


Reply to: