Return-Path: <owner@packages.qa.debian.org>
X-Original-To: md@wonderland.linux.it
Delivered-To: md@wonderland.linux.it
Received: from attila.bofh.it (localhost [127.0.0.1])
	by wonderland.linux.it (Postfix) with ESMTP id 23E721BE12
	for <md@wonderland.linux.it>; Wed, 19 Nov 2003 22:18:38 +0100 (CET)
Received: from picard.linux.it (picard.linux.it [62.177.1.107])
	by attila.bofh.it (Postfix) with ESMTP id 32B915F7F2
	for <md@wonderland.linux.it>; Wed, 19 Nov 2003 22:18:37 +0100 (CET)
Received: from master.debian.org (master.debian.org [::ffff:146.82.138.7])
	by picard.linux.it (Postfix) with ESMTP id B63503EE9
	for <md@linux.it>; Wed, 19 Nov 2003 22:18:33 +0100 (CET)
Received: from hertzog by master.debian.org with local (Exim 3.35 1 (Debian))
	id 1AMZia-0000tL-00; Wed, 19 Nov 2003 15:18:32 -0600
Received: from debbugs by master.debian.org with local (Exim 3.35 1
    (Debian)) id 1AMZi7-0000lQ-00; Wed, 19 Nov 2003 15:18:03 -0600
X-Loop: owner@bugs.debian.org
Subject: Bug#221739: /etc/hotplug/usb.agent generates 100s of lines of
    error output
Reply-To: root <ben@callahans.org>, 221739@bugs.debian.org
Resent-From: root <ben@callahans.org>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: Fumitoshi UKAI <ukai@debian.or.jp>
Resent-Date: Wed, 19 Nov 2003 21:18:02 UTC
Resent-Message-Id: <handler.221739.B.106927604327386@bugs.debian.org>
X-Debian-PR-Message: report 221739
X-Debian-PR-Package: hotplug
X-Debian-PR-Keywords: 
Received: via spool by submit@bugs.debian.org id=B.106927604327386 (code B
    ref -1); Wed, 19 Nov 2003 21:18:02 UTC
Received: (at submit) by bugs.debian.org; 19 Nov 2003 21:07:23 +0000
Received: from (callahans.org) [170.206.250.81] by master.debian.org with
    esmtp (Exim 3.35 1 (Debian)) id 1AMZXk-00076h-00; Wed, 19 Nov 2003
    15:07:21 -0600
Received: from root by callahans.org with local (BubbaMail 7.7 (NetBSD))
    id 1AMZXG-0000SW-00; Wed, 19 Nov 2003 16:06:50 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: root <ben@callahans.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailer: reportbug 2.34
Date: Wed, 19 Nov 2003 16:06:50 -0500
Message-Id: <E1AMZXG-0000SW-00@callahans.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE
    version=2.53-bugs.debian.org_2003_11_15
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15
    (1.174.2.15-2003-03-30-exp)
Resent-Sender: Debian BTS <debbugs@master.debian.org>
Delivered-To: hotplug@packages.qa.debian.org
Precedence: list
X-Loop: hotplug@packages.qa.debian.org
X-PTS-Package: hotplug
X-PTS-Keyword: bts
X-Unsubscribe: echo 'unsubscribe hotplug' | mail pts@qa.debian.org

Package: hotplug
Version: 0.0.20031008-1
Severity: normal


If there's an unparseable line in /lib/modules/modules.usbmap, usb.agent
generates hundreds (in my case, over 600) lines of output during the
boot; specifically, it repeatedly prints out the environment, which
includes all the functions it has just loaded.

Easy fix: change this:

--------------------------------------------------------
    while read line
    do
        # comments are lines that start with "#" ...
        # be careful, they still get parsed by bash!
        case "$line" in
        \#*) continue ;;
        esac
--------------------------------------------------------

to this:

--------------------------------------------------------
    while read line
    do
        # comments are lines that start with "#" ...
        # be careful, they still get parsed by bash!
        case "$line" in
        \#*) continue ;;
        "") continue ;;
        esac
--------------------------------------------------------

(note the added line in the case statement.) It might also be a good
idea to count the lines in modules.usbmap and report the one that fails
to parse... I still have to hunt down which one it is. :)


Regards,
Ben Okopnik
-=-=-=-=-=-

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux Fenrir.Thor 2.4.22 #5 Wed Nov 19 15:20:15 EST 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages hotplug depends on:
ii  debconf                    1.3.15        Debian configuration management sy
ii  module-init-tools          0.9.15-pre2-2 tools for managing Linux kernel mo
ii  modutils                   2.4.25-1      Linux module utilities
ii  procps                     1:3.1.12-1    The /proc file system utilities

-- debconf information:
* hotplug/usb_keyboard: 
  hotplug/x11_usbmice_hack: false
* hotplug/static_module_list: usb-uhci
* hotplug/usbd_enable: true


