sane: Misleading error message when user has no permission for scanner

Kevin Dalley (kevind@rahul.net)
Sun, 23 Aug 1998 13:16:51 -0700

device
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: Kevin Dalley <kevind@rahul.net>
Date: 23 Aug 1998 13:16:43 -0700
Message-ID: <87d89rfo7o.fsf@aplysia.rahul.net>
Lines: 26
X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald"

Here is a bug reported by a Debian user of sane. The error message is
quite difficult to understand. It would be good to have a clearer
message.

If the access permissions for the physical device are inadequate, scanimage
fails with a very misleading error message:

$ scanimage -d hp:/dev/scanner --resolution=300dpi --mode Color > /tmp/ol.pnm
[sanei_init_debug]: Setting debug level of hp to 128.
[hp] attach: opening /dev/scanner
[hp] attach: open failed (Invalid argument)
[hp] attach: opening /dev/scanner
[hp] attach: open failed (Invalid argument)
scanimage: open of device hp:/dev/scanner failed: Invalid argument

When the permissions on /dev/sgc were changed to 666, the problem
went away.

Please change the error message to indicate the nature of any problem
encountered.

--
Kevin Dalley
kevind@rahul.net

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com