m. allan noah
ba856d2aec
2008-09-25 m. allan noah <kitno455 a t gmail d o t com>
...
* include/sane/saneopts.h: underscore not allowed in option names
* frontend/scanimage.c: fix broken unknown length (-1) binary scans,
fix invalid tiff height with unknown length scans, fix compiler warn
2008-09-25 02:39:52 +00:00
Julien BLACHE
9f7441d267
Initialize ngroups to 0, ditto for runas_{u,g}id (instead of -1).
2008-08-05 09:27:39 +00:00
Julien BLACHE
eefb1b1155
Get option descriptor 0 before trying to read the value for option 0.
2008-08-04 20:54:10 +00:00
Julien BLACHE
32b343dcea
Set supplemental group list in addition to setting euid and egid. Reported by Cameron Hutchison.
2008-07-31 09:42:33 +00:00
Julien BLACHE
125ed414d4
Call setegid() before seteuid(), aka while we're still root.
2008-07-28 10:48:41 +00:00
Julien BLACHE
0ec211ef87
Rework error/exit path in process_request() to properly terminate the Avahi thread in debug mode.
2008-06-24 19:41:44 +00:00
Julien BLACHE
83365608d3
Terminate child processes before exiting in debug mode.
2008-06-22 08:47:59 +00:00
Julien BLACHE
dd6537cf0a
Fix function name in debug message.
2008-06-22 08:41:51 +00:00
m. allan noah
0acce974b2
add %n (newline) to -f option
2008-05-28 00:48:21 +00:00
Stéphane Voltz
78fc186543
- handling of SANE_STATUS_WARMING_UP
2008-05-26 04:56:41 +00:00
m. allan noah
084a18b0c4
remove undocumented and otherwise unused SANE_CAP_ALWAYS_SETTABLE
2008-05-21 01:20:35 +00:00
Julien BLACHE
fde1551f68
Fix typo.
2008-04-13 14:21:59 +00:00
Julien BLACHE
eff4892c1c
Restrict protocol for service announcement/browsing/resolution to IPv4
...
unless IPv6 is enabled.
2008-04-11 17:43:16 +00:00
Julien BLACHE
f4ff1b74f6
Add mDNS DNS-SD support to saned and the net backend so they can announce
...
and discover each other automatically.
Optional at configure time, requires Avahi >= 0.6.4.
2008-04-11 17:18:19 +00:00
Julien BLACHE
90a1c88e0d
saned can now drop privileges when running in standalone mode.
2008-04-10 16:55:36 +00:00
Julien BLACHE
cbb3833dbe
Add a PID file.
2008-04-10 16:39:06 +00:00
Julien BLACHE
ce7efefec7
Replace daemon() with an open-coded equivalent.
2008-04-10 16:31:17 +00:00
Julien BLACHE
26ffc6a211
Debug mode: close all sockets once we have accepted a connection.
2008-04-06 17:27:39 +00:00
Julien BLACHE
f3756baa4a
Close open file descriptors appropriately when spawning child process.
2008-04-06 17:23:36 +00:00
Julien BLACHE
9c6fea1943
Add standalone daemon mode, building upon the AF-indep/IPv6 debug mode.
...
Reorganize code by splitting the main() function into a series of functions.
Factorize common code between the old network code and the AF-indep code. There's now only one version of main().
2008-04-06 15:21:47 +00:00
Julien BLACHE
ef2838234e
Improve comment, once again.
2008-04-06 10:18:16 +00:00
Julien BLACHE
2330d122e0
Fix typo in comment.
2008-03-20 21:48:26 +00:00
Julien BLACHE
5ba1b2b917
Fix messages around getservbyname() in the IPv4 code to mention "sane-port" instead of "sane".
2008-03-20 21:47:14 +00:00
Mattias Ellert
22efa538b7
Fix warnings about ignored --datarootdir
2008-02-03 06:59:36 +00:00
m. allan noah
09f523defe
remove support for SANE_FRAME_JPEG, add other frame types but commented out
2007-12-29 21:36:25 +00:00
m. allan noah
b2666cada5
scanimage: bugfix, dont round up negative user input values
...
fujitsu.desc: add/consolidate new models
2007-08-08 12:46:02 +00:00
m. allan noah
c8e8f2c41a
scanimage.c: add default: blocks to switch statements so recent gcc will shutup
...
fujitsu.[ch]: update to backend v1.0.52:
- remove unused jpeg function
- reactivate look-up-table based brightness and contrast options
- change range of hardware brightness/contrast to match LUT versions
- call send_lut() from sane_control_option instead of sane_start
2007-07-31 18:07:53 +00:00
m. allan noah
e343cc59cf
* backend/fujitsu.[ch], backend/fujitsu-scsi.h: update to v1.0.50,
...
add JPEG support, usb command sending and scan params cleanups
* include/sane/sane.h: add SANE_FRAME_JPEG
* frontend/scanimage.c: dont crash on unknown frame types
2007-07-10 16:07:25 +00:00
Oliver Rauch
5b38d6f1d6
*** empty log message ***
2007-03-17 15:51:54 +00:00
Henning Geinitz
6bff1fdf4b
Added examples on how to set the scan area in the manual page (bug
...
#303802 ). Mention how to separate parameters from options in --help and manpage
(bug #303819 ).
2006-10-03 18:39:35 +00:00
Jon Chambers
b6f25c8971
flush the output buffer after each page (help prevent lost data on ctrl-C)
2006-06-15 20:10:15 +00:00
m. allan noah
e5bb981d6a
move sane_cancel outside of tight loop, only done at end of batch
2006-06-09 13:04:06 +00:00
Henning Geinitz
de2c4fb484
If saned does not find any config file, it calls fclose with a NULL FILE*. The
...
code may also leak open file descriptors and FILE's if multiple config files are
found. (bug #303339 ). Fixed possible segfault on close_handle() (bug #303338 ).
2006-04-09 10:07:18 +00:00
Henning Geinitz
56ba575749
Don't create and delete a file in batch mode if the document feeder is empty or
...
if CTRL-D is pressed in prompt mode. This change avoids deleting existing
files. For an explanation, see bug #302797 .
2006-01-02 23:00:23 +00:00
Henning Geinitz
947339db25
Run "makedepend" if it's available. This way "make" builds
...
backends correctly even if only included files (e.g. headers) are
changed. Don't be too verbose when running makedepend.
Create links libsane-*.so.1 to the real library files if the
links are not there. This fixes dynamic loading on OpenBSD. The
links are not created for MacOS X as they don't work there.
Remove any libsane.* links in /usr/local/lib/sane. Such links
are created by libtool. As they point to libsane-v4l.so,
scanimage -L doesn't find any scanner in case of ld.so
misconfigurations.
The install target is much quiter now and prints the libtool
message only once now.
2005-10-29 20:01:54 +00:00
Henning Geinitz
881756aff9
Added vendor "Lexmark".
2005-10-16 17:19:21 +00:00
Henning Geinitz
38087da06a
Use correct size for fgets. Patch from Antoine Jacoutot <ajacoutot@lphp.org>.
2005-10-06 19:11:09 +00:00
Henning Geinitz
e3e00e9d91
Added progress indicator to scanimage (based on patch from Mario Goppold
...
<mgoppold@tbz-pariv.de>). Updated copyright information, added links to
sane-devel mailing list.
2005-09-23 12:05:51 +00:00
Henning Geinitz
3ae9b03454
Don't exit with error when trying to set inactive options. This especially
...
happens in connection with geometry options and the v4l backend (bugs #300321 ,
#301977 ).
2005-08-14 14:51:06 +00:00
Henning Geinitz
6c3427c52d
Changes to support SANE on ZETA. Not all
...
patches have been applied yet, but it's a start. The backends
are not installed as shared libs but as add-ons, which are shared libs
but in a specific folder in [/system|~]/config/add-ons/ named SANE/.
The install target has been changed to account for this,
Some files don't exist in BeOS/ZETA (ipc.h, ...).
Bbackend function names get a prefix, I suppose to avoid namespace clashes.
Though we do have a libdl to implement dl_open, the native way is prefered.
Added a --with-docdir= configure arg.
BeOS has a broken get[name|addr]info() from bind. This is fixed in ZETA R1.
libtool needs -no-undefined. Various VPATH fixes.
Check for <be/drivers/USB_scanner.h>, but not used yet.
No S_IFSOCK (sockets are fds to /dev/net/api). Stub pio code, untested.
Patch from Francois Revol <revol@free.fr>.
2005-07-15 21:59:25 +00:00
Frank Zago
483e472841
New email address.
2005-07-07 11:55:43 +00:00
Mattias Ellert
23b39a25f1
Missing braces
2005-04-28 12:49:01 +00:00
Gerard Klaver
e9e045a44b
-split up printf command to remove warning ISO C89 (string length > 509)
...
-patch for bugreport 300160, ranges for width and height are wrong
-added option -B -buffersize so instead of default input buffer of
32*1024 a buffer of 1024*1024 can be chosen, so for vidcams for example
640x480, usb 2.0, 30fps less time is needed to fill input buffer.
2005-04-15 21:09:56 +00:00
Henning Geinitz
ee71d11e42
Fixed NULL string crash.
2004-10-16 13:49:16 +00:00
Julien BLACHE
746faf32c9
More auth_callback() fixes, although these ones aren't critical.
2004-09-05 09:27:28 +00:00
Julien BLACHE
91051e826f
* frontend/saned.c: auth_callback(): arrays are passed as pointers, declaring parameters as arrays of fixed size is useless. memset() the correct length, not sizeof(pointer).
...
Caught while testing splint on the SANE sources, potential information leakage.
2004-09-01 21:03:35 +00:00
Frank Zago
bf8369276c
fixed a couple bugs.
2004-08-14 17:33:20 +00:00
Julien BLACHE
c5f9d0d711
* frontend/scanimage.c: Added the possibility to cleanly stop a batch by pressing Ctrl+D when using --batch-prompt.
2004-07-31 17:26:02 +00:00
Henning Geinitz
7751b3b7eb
Changed service name from "sane" to "sane-port". This is the
...
IANA registered service name for port 6566 (bug #300758 ).
2004-06-02 18:38:28 +00:00
Henning Geinitz
524d3f3c47
Added checks for bad handles for SANE_NET_CLOSE and SANE_NET_CANCEL. This is
...
intended to stop saned from segfaulting when a bad handle is used.
2004-03-03 19:13:04 +00:00