From 13f51314cb99f9fde15da0502e06ec07a5a75949 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 3 Mar 2005 13:47:39 +0000 Subject: [PATCH] Add missing quotes in the grep line. --- ChangeLog | 3 +++ tools/hotplug-ng/libsane.hotplug | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a4fa944a..35f670af6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2005-03-03 Julien Blache + * tools/hotplug-ng/libsane.hotplug: add missing quote in the grep line. + 2005-03-02 Julien Blache * tools/hotplug-ng/libsane.hotplug: allow for several spaces between fields in the db file. diff --git a/tools/hotplug-ng/libsane.hotplug b/tools/hotplug-ng/libsane.hotplug index 57259ed4e..dec38a524 100755 --- a/tools/hotplug-ng/libsane.hotplug +++ b/tools/hotplug-ng/libsane.hotplug @@ -10,7 +10,7 @@ fi DEVVID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f1) | tr ' ' 0) DEVPID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f2) | tr ' ' 0) -DEVCONF=$(grep -i ^0x$DEVVID[[:space:]]\+0x$DEVPID /etc/sane.d/hotplug/*.db 2> /dev/null) +DEVCONF=$(grep -i "^0x$DEVVID[[:space:]]\+0x$DEVPID" /etc/sane.d/hotplug/*.db 2> /dev/null) if [ $? != 0 ]; then exit 0