Andrew Bartlett
c1cfc296c2
Cleanups: (merge from HEAD)
...
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings
- CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff.
- Fix up a possible Realloc() failure segfault
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
82cf8aa747
Ensure we return NOSPACE if we can't fast allocate a print job.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
105d37474d
Collapse duplicate messages before sending.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
d4168c327b
CUPS patch to log client name
0001-01-01 00:00:00 +00:00
Jeremy Allison
62e274abbb
Hold the lock for a much shorter time when allocating a new jobid.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
97848f40ee
Up the hash table size for printing tdb.c
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d8a42753cc
Ensure we only ever set fsp->conn in one place.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
07efebb984
Add 3 second timeout when terminating server and sending print notify
...
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7ace900b33
More scalable print tdb fixes.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
8d0bde4315
CUPS-PRINTER_CLASS patch from Michael Sweet
0001-01-01 00:00:00 +00:00
Gerald Carter
0fb724b321
*lots of small merges form HEAD
...
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9b70fa868e
Merge from HEAD:
...
- fstring/pstring mixups
- the detection code that found them (disabled)
- a bit of whitespace
- a static
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
f8a915b14d
[merge] make sure to update print queue cache during timeout_processing() to send notify events; CR 1491
0001-01-01 00:00:00 +00:00
Jeremy Allison
6cb9f6ccb1
Don't delete jobs subitted after the lpq time.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3a7458f947
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
...
warnings. (Adds a lot of const).
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
09a218a9f6
Forward port the change to talloc_init() to make all talloc contexts
...
named. Ensure we can query them.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
dd81003bdd
Store printer guid in the dsspooler registry key so we don't have to
...
query the directory server every time someone asks
0001-01-01 00:00:00 +00:00
Jim McDonough
d57bddc9b2
More printer publishing code.
...
- Add published attribute to info2, needed for win clients to work properly
- Return proper info on getprinter 7
This means you can now look at the sharing tab of a printer and get correct
info about whether it is published or not, and change it.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6eb27e4f0d
Fix debugs for rap mapping. Delete job on map fail.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
6e2f0c4e30
More printer data to publish
0001-01-01 00:00:00 +00:00
Jeremy Allison
6c23d2030a
The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
...
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6ce50ffcda
Janitor for tpot yet again... Merging in memory leak fix.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
ca6360e8db
Automatic printer publishing when using APW or choosing 'list in the directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients.
0001-01-01 00:00:00 +00:00
Tim Potter
d3998307ad
Merge a bunch of trivial changes from HEAD. The difference remaining
...
should actual functional differences between HEAD and 3.0.
- Mostly reformatting
- Removal of unecessary #include "smb.h"
- Merge of dyn_DRIVERFILE removal
- Silly bug fix for python code
0001-01-01 00:00:00 +00:00
cvs2svn Import User
9653595609
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
0001-01-01 00:00:00 +00:00
Gerald Carter
f1062e79de
[print notify fixes from APP_HEAD]
...
* fixing change notify on print server handle
* adding change notify support into smbcontrol for sending comment
changes, etc...
All part of CR 1159/1160
0001-01-01 00:00:00 +00:00
Gerald Carter
256d8c27cd
[print notify fixes from APP_HEAD]
...
* fixing change notify on print server handle
* adding change notify support into smbcontrol for sending comment
changes, etc...
All part of CR 1159/1160
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b3049bb0d0
No need to #include smb.h, when we already #include include.h
0001-01-01 00:00:00 +00:00
Jeremy Allison
19f86f1f72
Lots of fixes for error paths where tdb_fetch() data need freeing.
...
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5d5762d178
Lots of fixes for error paths where tdb_fetch() data need freeing.
...
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f755711df8
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
...
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
82b8f749a3
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
...
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
940b04ddfa
First cut of fix for changenotify on a print server handle. Use the connections tdb
...
with an snum of -1 and a special printername.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
06b0438007
First cut of fix for changenotify on a print server handle. Use the connections tdb
...
with an snum of -1 and a special printername.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7e7b40e0fe
Fix for scalable printing noticed by tpot. Don't loop infinately
...
when holding a mutex.... :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c206643baa
Fix for scalable printing noticed by tpot. Don't loop infinately
...
when holding a mutex.... :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9b08b4e4c2
Fix crash bug with overwriting memory.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3228730c83
Fix crash bug with overwriting malloced memory.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ceb01b5ab1
Keeping branches in sync....
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
eb937761c4
Keeping branches in sync....
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
10024ed06e
Merge of scalable printing code fix... Needs testing.
...
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d030df7643
Merge of scalable printing code fix... Needs testing.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d05b147fb3
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6efd17ef78
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9e47aa32ed
Check the long_archi name is not null.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e504d1170d
Check the long_archi name for NULL.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
997c234e15
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e240c7a428
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
e7dd8cf903
merge from samba_3_0
...
removed the following parameters
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
0001-01-01 00:00:00 +00:00
Gerald Carter
743f2b8025
removed the following parameters
...
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
0001-01-01 00:00:00 +00:00