fails when device name contains whitespace

Bug #799190 reported by Darsey Litzenberger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pct-scanner-scripts (Debian)
New
Unknown
pct-scanner-scripts (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pct-scanner-scripts

pct-scanner-script doesn't work at all when the scanner device name contains a space.

Output of "scanimage -L":

  device `fujitsu:ScanSnap S1500:24768' is a FUJITSU ScanSnap S1500 scanner
  device `hpaio:/usb/hp_LaserJet_3015?serial=00CNBM025551' is a Hewlett-Packard hp_LaserJet_3015 all-in-one

Last few lines of output of "bash -x /usr/bin/pct-scanner-script -c -r 200 -d 'fujitsu:ScanSnap S1500:24768' -s 'ADF Duplex'":

  + scanadf --device-name fujitsu:ScanSnap S1500:24768 --scan-script /usr/lib/pct-scanner-scripts/pct-scanner-script-process --output-file /home/dwon/scanscript/input/image-%04d.pbm --source ADF Duplex --resolution 200 --mode Color -x 210.000mm -y 297.000mm --start-count 1 '2>/dev/null'
  scanadf: open of device fujitsu:ScanSnap failed: Invalid argument

Revision history for this message
Darsey Litzenberger (dlitz) wrote :

This is against version 0.0.4-3

Revision history for this message
Darsey Litzenberger (dlitz) wrote :

I've attached a patch to fix this bug.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pct-scanner-scripts - 0.0.4-3ubuntu1

---------------
pct-scanner-scripts (0.0.4-3ubuntu1) oneiric; urgency=low

  * Apply patch from Dwayne Litzenberger fixing improper quoting
    in the shell script. Thanks, Dwayne! (LP: #799190)
 -- Daniel T Chen <email address hidden> Tue, 19 Jul 2011 16:33:16 -0400

Changed in pct-scanner-scripts (Ubuntu):
status: New → Fix Released
Daniel T Chen (crimsun)
tags: added: patch-forwarded-debian
removed: patch
Daniel T Chen (crimsun)
tags: added: patch-accepted-debian
removed: patch-forwarded-debian
Changed in pct-scanner-scripts (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.