[sane-devel] Re: updated Fujitsu SANE backend (fwd)

Charles Duffy cduffy at spamcop.net
Wed Feb 22 13:58:48 UTC 2006


I note that sane_close() doesn't call do_cancel() unless the scanner is 
actually busy. This is a Bad Thing if a process wants to exec another 
process which will in turn open the scanner itself, because it means 
that most of the time sane_close() doesn't actually free the device, 
leaving it still locked.

--- fujitsu-up2/fujitsu.c       2006-02-17 15:38:37.000000000 -0600
+++ sane-backends-1.0.17/backend/fujitsu.c      2006-02-22 
07:52:59.841984471 -0600
@@ -2420,10 +2420,8 @@
  {
    DBG (10, "sane_close\n");
    if (((struct fujitsu *) handle)->object_count != 0)
-                {
      do_reset (handle);
-    do_cancel (handle);
-                }
+  do_cancel (handle);
  }




More information about the sane-devel mailing list