Message-Id: <20050312153249.3E20110D591@localhost>
Date: Sat, 12 Mar 2005 16:32:48 +0100
From: Thomas Hood <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Backup files in blacklist.d not ignored
Package: hotplug
Version: 0.0.20040329-17
Severity: normal
/etc/hotplug/hotplug.functions:
if grep -q "^$(echo $MODULE|sed -e 's/[-_]/[-_]/g')\$" $HOTPLUG_DIR/blacklist $HOTPLUG_DIR/blacklist.d/* >/dev/null 2>&1; then
This processes _all_ the files in $HOTPLUG_DIR/blacklist.d/ without
ignoring those that are backup files, e.g., foo.dpkg-old. The
hotplug package avoids this sort of problem in other cases by requiring
a special file suffix. It may be too late to require such a suffix for
names of files in blacklist.d. Perhaps "run-parts --list" can be used
to obtain the list of active files in the directory instead of shell
glob.
Versions of packages hotplug depends on:
ii debconf 1.4.32 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.27-0.1 Linux module utilities
ii procps 1:3.2.3-1 The /proc file system utilities
Message-Id: <20050312153249 .3E20110D591@ localhost>
Date: Sat, 12 Mar 2005 16:32:48 +0100
From: Thomas Hood <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Backup files in blacklist.d not ignored
Package: hotplug
Version: 0.0.20040329-17
Severity: normal
/etc/hotplug/ hotplug. functions:
if grep -q "^$(echo $MODULE|sed -e 's/[-_]/[-_]/g')\$" $HOTPLUG_ DIR/blacklist $HOTPLUG_ DIR/blacklist. d/* >/dev/null 2>&1; then
This processes _all_ the files in $HOTPLUG_ DIR/blacklist. d/ without
ignoring those that are backup files, e.g., foo.dpkg-old. The
hotplug package avoids this sort of problem in other cases by requiring
a special file suffix. It may be too late to require such a suffix for
names of files in blacklist.d. Perhaps "run-parts --list" can be used
to obtain the list of active files in the directory instead of shell
glob.
-- System Information: ISO-8859- 15)
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro (charmap=
Versions of packages hotplug depends on:
ii debconf 1.4.32 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.27-0.1 Linux module utilities
ii procps 1:3.2.3-1 The /proc file system utilities
-- debconf information: ignore_ pci_class_ display: true net_agent_ policy: hotplug static_ module_ list: usb_keyboard: x11_usbmice_ hack: false
* hotplug/
* hotplug/
* hotplug/
* hotplug/
hotplug/