summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
2003-03-31Fix a botched merge from appliance-head...Andrew Bartlett1-1/+1
We have an extra NULL here, which is (if I understand correctly) related to a optional 'charset conversion' function. In any case, as this is a variable args length function, the compiler didn't pick it up. Would it be possible to change applicance_head (or even HEAD) in such a way that this extra arg would cause a warning? Finding this by testing is getting painful... Andrew Bartlett (This used to be commit b4e52d90f8a207b5cd7415abb5915c3ac0c65dfc)
2003-03-26Fix extra NULL arg added during app-head merge.Jeremy Allison1-3/+3
Jeremy. (This used to be commit 4868633bc8182b939190d3cdb86b24cbdb78b5e1)
2003-03-21Merge of new appliance-head scalable printing fixes.Jeremy Allison1-142/+287
Jeremy. (This used to be commit 301f17df51961b645b63d1520fc9c2e5627c1a0a)
2003-03-20lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison1-0/+5
Apply the job returned limit across all requests for job queues. Jeremy. (This used to be commit dee1326a1d8a0bf8977df22a0fe014dd5d8dc769)
2003-03-06add #define for the max device name length in a DEVICEMODEGerald Carter1-1/+1
(This used to be commit 21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83)
2003-03-05Writable string const fixes.Jeremy Allison2-7/+13
Jeremy. (This used to be commit 60b0cfc8a5b6275d3460ebc6bf17d0f08e25b67e)
2003-03-04Fix another 'off by one' bug with safe_strcpy(). It is unclear if the intentAndrew Bartlett1-2/+2
was to limit the string to 31 or 32 characters (excluding the null term), so I've assumed for now that 32 is fine, as this matches current behaviour (well, current behaviour would crash, but anyway...) Jerry: Can you look at this for me? Andrew Bartlett (This used to be commit 6c43327ea2b50820ea4f623c889dc4525d58baa3)
2003-03-01Ensure added jobs increment total_jobs.Jeremy Allison1-0/+6
Jeremy. (This used to be commit d29c6853dd0c43825b3775020076f34faa5cd329)
2003-02-25Progress on CR 601Gerald Carter1-152/+214
cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok. (This used to be commit 33c7b7522504fb15989f32add8e9a087c8d9d0fa)
2003-02-19Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if theJeremy Allison1-9/+14
jobid is below the UNIX_JOB_START number. Jeremy. (This used to be commit e8a9bf67cbe5b3e33f99e6793fe4ec445d6e8819)
2003-02-17This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett1-1/+1
When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett (This used to be commit 9be21976f7662ebe6eb92fff7cecbdb352eca334)
2003-02-15* set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2-4/+35
* never save a pointer to an automatic variable (they go away) implement a deep copy for SPOOLSS_NOTIFY_MSG to correct messages being sent that have junk for strings; fix in response to changes for CR 1504 (This used to be commit 043b9dff22e909fc290c34d879cad8b4c980fc13)
2003-02-14off by one bug in string length; CR 1159Gerald Carter1-1/+1
(This used to be commit 4b5b0bcd9092a6003e3494dda949e03e803ec0aa)
2003-02-12Prevent NULL-pointer induced segfaults.Andrew Bartlett1-4/+4
Is tdb_pack in appliance_head different for some reason? Andrew Bartlett (This used to be commit 9deb14a2e63fa71a05915b5ab865b8d0c11df098)
2003-02-10Failure to find a CUPS printer, when auto-adding printers is not a level 0 ↵Andrew Bartlett1-3/+3
error. Andrew Bartlett (This used to be commit 79650e08c9f1cbf66979adf2575d8b04e06fe4e7)
2003-02-08Ensure we return NOSPACE if we can't fast allocate a print job.Jeremy Allison1-2/+7
Jeremy. (This used to be commit 9cd29f2bacd7c61f82f799e97f93d88f98f9ece6)
2003-02-05Collapse duplicate messages before sending.Jeremy Allison1-80/+132
Jeremy. (This used to be commit 203959f1c2389fa95736af09fee5b07e7ae8b659)
2003-02-05CUPS patch to log client nameGerald Carter1-0/+4
(This used to be commit 364a4de6dfb93353fe0742c259c810ffc7e1eab6)
2003-02-04Hold the lock for a much shorter time when allocating a new jobid.Jeremy Allison1-54/+67
Jeremy. (This used to be commit 0b5a0fec826475c6282177bae88dcdad23c2825d)
2003-02-04Up the hash table size for printing tdb.cJeremy Allison1-1/+1
Jeremy. (This used to be commit 5f13d6b4a009a02c5d5ef9f806f0eb4b52cfe70c)
2003-02-04Ensure we only ever set fsp->conn in one place.Jeremy Allison1-1/+0
Jeremy. (This used to be commit 2110901b381f2a749605c8e8b262fa5ceba11169)
2003-01-30Add 3 second timeout when terminating server and sending print notifyJeremy Allison1-4/+4
messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. (This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-30More scalable print tdb fixes.Jeremy Allison1-13/+23
Jeremy. (This used to be commit fa8647eb208a971063039c24da849021c5e25267)
2003-01-28CUPS-PRINTER_CLASS patch from Michael SweetGerald Carter1-2/+101
(This used to be commit d74d4fe0b0c64d500367e4969be37f4541227d3e)
2003-01-15Fix warnings by getting the function into a shape the autoprototyper willAndrew Bartlett1-6/+4
read, and add a static. Andrew Bartlett (This used to be commit 919889de78fc3c7bc5dfebcc180385f2f3d7a564)
2003-01-15Crash fixes:Andrew Bartlett1-2/+7
- fix a crash when a second NTLMSSP session tried to free the first - fix a crash due to some NULL pointers in the Add Printer Wizard (or read printer code too it appears). As far as I can tell it's just that the GUID just might not exist. Andrew Bartlett (This used to be commit 51b1413056b0d001076ff47a755eb35baa2d9e6d)
2003-01-14The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett1-1/+1
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter1-7/+16
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-10Fix lpq_cache time check (missed from yesterday).Jeremy Allison1-4/+4
Jeremy. (This used to be commit 21c8acd25ac93f7ea5b77ef6005e3789a71ca50f)
2003-01-02BIG patch...Andrew Bartlett3-31/+31
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2-5/+5
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-13Store printer guid in the dsspooler registry key so we don't have toJim McDonough1-72/+178
query the directory server every time someone asks (This used to be commit f0fc4e30f6284565de404a20450a587cd3fe00a5)
2002-12-13More printer publishing code.Jim McDonough1-6/+16
- 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. (This used to be commit adda04379ee46f105436262663652f3f576fa3cf)
2002-12-05Fix debugs for rap mapping. Delete job on map fail.Jeremy Allison2-3/+7
Jeremy. (This used to be commit 631d6066981c58f61d7fed4376b0254544eede84)
2002-12-05More printer data to publishJim McDonough1-71/+68
(This used to be commit 82f3a786bf01878629fe4c05b028ae8d58eb4394)
2002-12-05The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison2-7/+43
jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy. (This used to be commit 15f0bad1fc72ff44cd195d34fd530c25a739f42d)
2002-12-04More attributes to publish. All DsSpooler attributes except REG_MULTI_SZ ↵Jim McDonough1-3/+62
ones should be published now. (This used to be commit 4fc602fd7da4b216748b005f62b14be0cfdddd63)
2002-12-04Janitor for tpot yet again... Merging in memory leak fix.Jeremy Allison1-2/+2
Jeremy. (This used to be commit a2ab78d68d269e77d55bf4b6929cf512a28f0708)
2002-12-04Automatic printer publishing when using APW or choosing 'list in the ↵Jim McDonough1-1/+143
directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients. (This used to be commit bbd7c8071a095c4e410f92489050b677a0f0ace1)
2002-11-26[print notify fixes from APP_HEAD]Gerald Carter3-279/+326
* fixing change notify on print server handle * adding change notify support into smbcontrol for sending comment changes, etc... All part of CR 1159/1160 (This used to be commit 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
2002-11-24No need to #include smb.h, when we already #include include.hAndrew Bartlett3-4/+0
(This used to be commit b3049bb0d0ff97142940e2b33e9603d1c231ccfe)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2-15/+25
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-18/+22
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-10First cut of fix for changenotify on a print server handle. Use the ↵Jeremy Allison1-43/+80
connections tdb with an snum of -1 and a special printername. Jeremy. (This used to be commit 940b04ddfa87acc939911e3fe76496e3c4675632)
2002-11-10Fix for scalable printing noticed by tpot. Don't loop infinatelyJeremy Allison1-13/+36
when holding a mutex.... :-). Jeremy. (This used to be commit c206643baaae64cef38f2f74e46337d35a489ca9)
2002-11-07Fix crash bug with overwriting memory.Jeremy Allison1-5/+3
Jeremy. (This used to be commit 9b08b4e4c24290e5d90a7cc2dc442cb82e73df28)
2002-11-07Keeping branches in sync....Jeremy Allison1-1/+2
Jeremy. (This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison2-30/+307
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. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-10-31Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison2-15/+18
Jeremy. (This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-10-31Check the long_archi name is not null.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 9e47aa32ed96faff4a68a8e360c1353fc011adf1)