<div dir="ltr"><div>Ok, I pushed a patch that lets USB test pass on all my boxes.<br><br></div>I'd appreciate if someone could test this (run "make check") on a box with a USB scanner plugged in. All my scanners are network scanners so I can't test that case.<br>
<br>Chris<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 25, 2013 at 12:58 PM, m. allan noah <span dir="ltr"><<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your suggested changes sound fine to me.<br>
<br>
allan<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, Aug 25, 2013 at 1:09 PM, Chris Bagwell <<a href="mailto:chris@cnpbagwell.com">chris@cnpbagwell.com</a>> wrote:<br>
> Hi all,<br>
><br>
> This is probably directly more towards Stéphane based on recent USB work but<br>
> of interest to all.<br>
><br>
> The sanie_usb_test.c test is failing on one of my Linux boxes in the<br>
> test_open_all() test... I'd like to get some input on best way to fix this<br>
> failure or if we should fix it at all.<br>
><br>
> The reason it is failing for me is because this box has a USB wifi module<br>
> that has a report with Vendor Specific Class/Subclass/Protocol and so sane<br>
> adds it to the list as possible scanner.  The open itself fails when ran by<br>
> normal user because its accessable only by root (EACCES).  The open fails<br>
> when ran as root because its already opened by networking stuff (EBUSY).<br>
><br>
> Because these two cases are kinda soft failures, I was thinking about<br>
> changing the test to simply skip over these opens instead of failing the<br>
> whole test case.  What do you think about this change?<br>
><br>
> If you agree with that change, the second issue I'll have is that<br>
> sanei_usb_open() seems to treat EPERM as permission denied<br>
> (SANE_STATUS_ACCESS_DENIED) but not EACCES.  Do you see any issues with me<br>
> changing it so both EPERM and EACCES map to SANE_STATUS_ACCESS_DENIED?<br>
><br>
> If I don't make that change then the EACCES error code is mapped to generic<br>
> SANE_STATUS_INVAL and I can't tell difference between real failures and<br>
> permission failures.<br>
><br>
> Chris<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
> <a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
> Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
>              to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
<br>
<br>
<br>
--<br>
"The truth is an offense, but not a sin"<br>
</font></span></blockquote></div><br></div></div></div></div>