Comment 9 for bug 6896

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 23 Jun 2004 19:43:26 -0400
From: Ivan Nestlerode <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: patch for the problem

--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

retitle 255950 libbonobo2-0: bashism in postinst
tags 255950 patch
thanks

The error is on the postinst file. This line is buggy:
       kill -HUP `pidof bonobo-activation-server` &>/dev/null || true

The ampersand redirection is a bashism that doesn't work with dash as
/bin/sh. Changing it to a 2 works in this case to suppress the kill
error message on stderr that you get when bonobo isn't running.

The patch is attached.

-Ivan

--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

--- /var/lib/dpkg/info/libbonobo2-0.postinst 2004-06-22 17:53:53.000000000 -0400
+++ libbonobo2-0.postinst-fixed 2004-06-23 19:30:59.000000000 -0400
@@ -4,7 +4,7 @@

 case "$1" in
     configure)
- kill -HUP `pidof bonobo-activation-server` &>/dev/null || true
+ kill -HUP `pidof bonobo-activation-server` 2>/dev/null || true
     ;;

     abort-upgrade|abort-remove|abort-deconfigure)

--gBBFr7Ir9EOA20Yy--