Package: libsane Version: 1.0.15-8 Severity: important Tags: patch Often a pseudo file /proc/bus/usb/XXX/YYY for usb device is not created before chmod & chown is run in script /etc/hotplug.d/usb/libsane.hotplug resulting chmod & chown to fail and wrong access premissions to pseudo file.
I made and tested a lousy hack which stops until file is created and premissions can be set. $ diff -u /etc/hotplug.d/usb/libsane.hotplug~ \ /etc/hotplug.d/usb/libsane.hotplug --- /etc/hotplug.d/usb/libsane.hotplug~ 2005-04-03 13:22:29.000000000 +0300 +++ /etc/hotplug.d/usb/libsane.hotplug 2005-04-03 18:44:43.138016424 +0300 @@ -18,6 +18,13 @@ set $DEVCONF +N=0 +while test ! -e $DEVICE && test "$N" -lt 120 + do + sleep 1 + N=$[N+1] +done + chown $3 $DEVICE && chmod $4 $DEVICE if [ ! -z $5 -a -x $5 ]; then $ -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (900, 'testing'), (400, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7 Locale: LANG=en_US, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages libsane depends on: ii adduser 3.63 Add and remove users and groups ii debconf 1.4.30.11 Debian configuration management sy ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libgphoto2-2 2.1.5-4 gphoto2 digital camera library ii libgphoto2-port0 2.1.5-4 gphoto2 digital camera port librar ii libieee1284-3 0.2.9-3 cross-platform library for paralle ii libjpeg62 6b-9 The Independent JPEG Group's JPEG ii libusb-0.1-4 2:0.1.10a-6 userspace USB programming library ii makedev 2.3.1-77 creates device files in /dev ii sane-utils 1.0.15-8 API library for scanners -- utilit -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]