summaryrefslogtreecommitdiffstats
path: root/source/printing
Commit message (Collapse)AuthorAgeFilesLines
* Fix the new storage code to correctly convert from system queue info toJeremy Allison2003-04-041-3/+15
| | | | | pjob info. Ensure we retrieve more than one job from the storage code. Jeremy.
* Subtle changes to message handling after ENUMJOBS.Jeremy Allison2003-04-022-11/+88
| | | | Jeremy.
* Fix a botched merge from appliance-head...Andrew Bartlett2003-03-311-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
* Fix extra NULL arg added during app-head merge.Jeremy Allison2003-03-261-3/+3
| | | | Jeremy.
* Merge of new appliance-head scalable printing fixes.Jeremy Allison2003-03-211-142/+287
| | | | Jeremy.
* lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison2003-03-201-0/+5
| | | | | Apply the job returned limit across all requests for job queues. Jeremy.
* add #define for the max device name length in a DEVICEMODEGerald Carter2003-03-061-1/+1
|
* Writable string const fixes.Jeremy Allison2003-03-052-7/+13
| | | | Jeremy.
* Fix another 'off by one' bug with safe_strcpy(). It is unclear if the intentAndrew Bartlett2003-03-041-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
* Ensure added jobs increment total_jobs.Jeremy Allison2003-03-011-0/+6
| | | | Jeremy.
* Progress on CR 601Gerald Carter2003-02-251-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.
* Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if theJeremy Allison2003-02-191-9/+14
| | | | | jobid is below the UNIX_JOB_START number. Jeremy.
* This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett2003-02-171-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
* * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2003-02-152-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
* off by one bug in string length; CR 1159Gerald Carter2003-02-141-1/+1
|
* Prevent NULL-pointer induced segfaults.Andrew Bartlett2003-02-121-4/+4
| | | | | | Is tdb_pack in appliance_head different for some reason? Andrew Bartlett
* Failure to find a CUPS printer, when auto-adding printers is not a level 0 ↵Andrew Bartlett2003-02-101-3/+3
| | | | | | error. Andrew Bartlett
* Ensure we return NOSPACE if we can't fast allocate a print job.Jeremy Allison2003-02-081-2/+7
| | | | Jeremy.
* Collapse duplicate messages before sending.Jeremy Allison2003-02-051-80/+132
| | | | Jeremy.
* CUPS patch to log client nameGerald Carter2003-02-051-0/+4
|
* Hold the lock for a much shorter time when allocating a new jobid.Jeremy Allison2003-02-041-54/+67
| | | | Jeremy.
* Up the hash table size for printing tdb.cJeremy Allison2003-02-041-1/+1
| | | | Jeremy.
* Ensure we only ever set fsp->conn in one place.Jeremy Allison2003-02-041-1/+0
| | | | Jeremy.
* Add 3 second timeout when terminating server and sending print notifyJeremy Allison2003-01-301-4/+4
| | | | | | messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy.
* More scalable print tdb fixes.Jeremy Allison2003-01-301-13/+23
| | | | Jeremy.
* CUPS-PRINTER_CLASS patch from Michael SweetGerald Carter2003-01-281-2/+101
|
* Fix warnings by getting the function into a shape the autoprototyper willAndrew Bartlett2003-01-151-6/+4
| | | | | | read, and add a static. Andrew Bartlett
* Crash fixes:Andrew Bartlett2003-01-151-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
* The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett2003-01-141-1/+1
|
* [merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter2003-01-111-7/+16
| | | | to send notify events; CR 1491
* Fix lpq_cache time check (missed from yesterday).Jeremy Allison2003-01-101-4/+4
| | | | Jeremy.
* BIG patch...Andrew Bartlett2003-01-023-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
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-202-5/+5
| | | | | named. Ensure we can query them. Jeremy.
* Store printer guid in the dsspooler registry key so we don't have toJim McDonough2002-12-131-72/+178
| | | | query the directory server every time someone asks
* More printer publishing code.Jim McDonough2002-12-131-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.
* Fix debugs for rap mapping. Delete job on map fail.Jeremy Allison2002-12-052-3/+7
| | | | Jeremy.
* More printer data to publishJim McDonough2002-12-051-71/+68
|
* The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison2002-12-052-7/+43
| | | | | | jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy.
* More attributes to publish. All DsSpooler attributes except REG_MULTI_SZ ↵Jim McDonough2002-12-041-3/+62
| | | | ones should be published now.
* Janitor for tpot yet again... Merging in memory leak fix.Jeremy Allison2002-12-041-2/+2
| | | | Jeremy.
* Automatic printer publishing when using APW or choosing 'list in the ↵Jim McDonough2002-12-041-1/+143
| | | | directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients.
* [print notify fixes from APP_HEAD]Gerald Carter2002-11-263-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
* No need to #include smb.h, when we already #include include.hAndrew Bartlett2002-11-243-4/+0
|
* Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2002-11-232-15/+25
| | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy.
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-18/+22
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* First cut of fix for changenotify on a print server handle. Use the ↵Jeremy Allison2002-11-101-43/+80
| | | | | | | connections tdb with an snum of -1 and a special printername. Jeremy.
* Fix for scalable printing noticed by tpot. Don't loop infinatelyJeremy Allison2002-11-101-13/+36
| | | | | when holding a mutex.... :-). Jeremy.
* Fix crash bug with overwriting memory.Jeremy Allison2002-11-071-5/+3
| | | | Jeremy.
* Keeping branches in sync....Jeremy Allison2002-11-071-1/+2
| | | | Jeremy.
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-072-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.