summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
2003-09-19Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison1-3/+3
me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
2003-09-15Merge from Samba 3.0:Tim Potter1-5/+39
>Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting >to/from utf8 for some calls. The libads code gets this right. Wonder why >the passdb code doesn't use it ? >Jeremy. (This used to be commit 9b6328bcfd5b53a05926eb5a97c74275842d086b)
2003-09-15Merge from Samba 3.0:Tim Potter1-0/+1
>fix unitiailized timestamp where merging print_jobs and lpq listing (This used to be commit 1603d0e6848a8ec3f7d8a8f735c9d1a6d92aac0b)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter2-13/+34
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-08-02port latest changes from SAMBA_3_0 treeSimo Sorce2-6/+6
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter7-121/+132
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-27Squash another compiler warning.Tim Potter1-2/+2
(This used to be commit 8bfcbd53848e34b90099f5167b570165c3f6bf62)
2003-04-29removing printing = SOFTQ since no one knows what it isGerald Carter1-83/+0
(This used to be commit 7daf5f004273156ae263129b847c601b210f4fdb)
2003-04-23Limit the number of outstanding print notify messages for a process toJeremy Allison1-1/+8
1000. Jeremy. (This used to be commit aabaac05c6adbb510ed27f87115de3e83e27158c)
2003-04-16Fix mem leak. Spotted by tpot (thanks Tim).Jeremy Allison1-0/+1
Jeremy. (This used to be commit adeac265a05be90444d4651f36f2db2bd2f8e8e4)
2003-04-10Ensure we're not filtering our essential delete messages.Jeremy Allison1-11/+21
Added jobid debug when unpacking message. Jeremy. (This used to be commit 8bab6e32069e1636a52efa31ca55b49f1b3fa768)
2003-04-09Ensure print queue array is zeroed out before returning.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 337cac7810369430045d7a136176bd57e55adcde)
2003-04-04Fix the new storage code to correctly convert from system queue info toJeremy Allison1-3/+15
pjob info. Ensure we retrieve more than one job from the storage code. Jeremy. (This used to be commit 5dc3150ff3fc05e71faad76e83079c60f62bac4f)
2003-04-02Subtle changes to message handling after ENUMJOBS.Jeremy Allison2-11/+88
Jeremy. (This used to be commit 48f3bf0ea51b9fd09dfb017870e32ca4a8cc4b8c)
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)