Your message dated Sun, 27 Feb 2005 15:58:41 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#297137: hotplug: /etc/init.d/hotplug stopped working 
because 'unset' fails
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 Feb 2005 12:03:33 +0000
>From [EMAIL PROTECTED] Sun Feb 27 04:03:33 2005
Return-path: <[EMAIL PROTECTED]>
Received: from maggie.webpack.hosteurope.de [217.115.142.82] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D5N92-0006TB-00; Sun, 27 Feb 2005 04:03:33 -0800
Received: by maggie.webpack.hosteurope.de running Exim 4.34 using asmtp
        from n116-203.dsl.de.inter.net ([213.73.116.203] helo=goneko.de)
        id 1D5N8s-0005HW-4v; Sun, 27 Feb 2005 13:03:22 +0100
Received: by goneko.de (Postfix, from userid 501)
        id 2E31187C8; Sun, 27 Feb 2005 13:03:11 +0100 (CET)
From: Jan Echternach <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: hotplug: /etc/init.d/hotplug stopped working because 'unset' fails
X-Mailer: reportbug 1.50
Date: Sun, 27 Feb 2005 13:03:11 +0100
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: hotplug
Version: 0.0.20040329-17
Severity: grave
Tags: patch
Justification: renders package unusable


"/etc/init.d/hotplug start" aborts almost immediately, it doesn't even
print the "Starting hotplug subsystem" message.  I didn't notice this
until I tried to use an USB device and found that no USB modules
were loaded.  Other modules like hw_random had not been loaded either.

I've tracked it down to an 'unset' call failing, apparently because the
variable to be unset hasn't been set in the first place.  This simple
patch made it work again:

--- hotplug-orig        Wed Feb 16 01:40:28 2005
+++ hotplug     Sun Feb 27 12:23:29 2005
@@ -24,7 +24,7 @@
 # $prune_output (the list with the elements removed) and $prune_discard
 # (the list of the elements discarded).
 prune() {
-    unset prune_output prune_discard
+    unset prune_output prune_discard || :
     local discard
 
     for x in $1; do
@@ -55,7 +55,7 @@
     # Append it to the new list, knowing that dependancies are satisfied.
     echo "$sorted_list $prune_discard"
 
-    unset prune_output prune_discard
+    unset prune_output prune_discard || :
 }
 
 quiet_printk() {
@@ -132,7 +132,7 @@
     ;;
 
 status)
-    unset QUIET
+    unset QUIET || :
     run_rcs $1 "Hotplug status"
     ;;
 

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux ogar 2.6.10-1-686 #1 Tue Jan 18 04:34:19 EST 2005 i686
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages hotplug depends on:
ii  debconf                 1.4.46           Debian configuration management sy
ii  grep                    2.5.1.ds1-4      GNU grep, egrep and fgrep
ii  module-init-tools       3.2-pre1-2       tools for managing Linux kernel mo
ii  modutils                2.4.26-1.2       Linux module utilities
ii  procps                  1:2.0.7-8.woody1 The /proc file system utilities.


---------------------------------------
Received: (at 297137-done) by bugs.debian.org; 27 Feb 2005 14:58:52 +0000
>From [EMAIL PROTECTED] Sun Feb 27 06:58:52 2005
Return-path: <[EMAIL PROTECTED]>
Received: from attila.bofh.it [213.92.8.2] (postfix)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D5Psi-0000TU-00; Sun, 27 Feb 2005 06:58:52 -0800
Received: by attila.bofh.it (Postfix, from userid 10)
        id 294E15F860; Sun, 27 Feb 2005 15:58:50 +0100 (CET)
Received: by wonderland.linux.it (Postfix, from userid 1001)
        id 6DE0F1C189; Sun, 27 Feb 2005 15:58:41 +0100 (CET)
Date: Sun, 27 Feb 2005 15:58:41 +0100
To: Jan Echternach <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Bug#297137: hotplug: /etc/init.d/hotplug stopped working because 
'unset' fails
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X"
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.6+20040907i
From: [EMAIL PROTECTED] (Marco d'Itri)
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--UFHRwCdBEJvubb2X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 27, Jan Echternach <[EMAIL PROTECTED]> wrote:

> Looks like a bug in old bash versions since SUSv2 says
Since this is not reproducible with the version of bash currently in
testing, I'm closing the bug.

--=20
ciao,
Marco

--UFHRwCdBEJvubb2X
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCIeAhFGfw2OHuP7ERAjCBAJwPu5pNetEM2KAxuz4rH5Z1vTmnigCglCHD
p50WjWrPCgqFyABtf0UTUng=
=CumM
-----END PGP SIGNATURE-----

--UFHRwCdBEJvubb2X--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to