[Foo2zjs-maintainer] Bug#526781: foo2zjs: udev/hotplug script should quote find arguments

kogan kogan at bit-integro.ru
Sun May 3 14:11:36 UTC 2009


Package: foo2zjs
Version: 20070718dfsg-9
Severity: normal

hplj1000 (udev/hotplug) script tries to find entries in /dev
using the following:

usblps=`find /dev/usb -name lp*`" "`find /dev -name usblp*`

This fails with error when current dir contains files with names like 
lp(something) or usblp(something). Note that /usr/sbin usually contains 
at least lpadmin or lpc.

Solution - use single quotes to prevent find parameter substitution:

usblps=`find /dev/usb -name 'lp*'`" "`find /dev -name 'usblp*'`


-- System Information:
Debian Release: 5.0
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.26.2
Locale: LANG=en_US, LC_CTYPE=ru_RU.KOI8R (charmap=KOI8-R)





More information about the Foo2zjs-maintainer mailing list