summaryrefslogtreecommitdiffstats
path: root/source/printing
Commit message (Collapse)AuthorAgeFilesLines
...
* iFix from "Shahms E. King" <shahms@shahms.com> to get cups user nameJeremy Allison2001-07-171-6/+6
| | | | | right. Jeremy.
* Fix for incorrect creation of print job names, based on a patch byJeremy Allison2001-07-161-2/+2
| | | | | José M.Rodríguez <josemi@iies.es> Jeremy.
* Fix from Jim Vopni - muliple definitions of "letter".Jeremy Allison2001-07-161-2/+0
| | | | Jeremy.
* Changed instances of TRUE, FALSE to True, False as some compilers don'tTim Potter2001-07-121-1/+1
| | | | have the first set of symbols.
* Removed unused local variables.Tim Potter2001-07-101-8/+0
|
* split the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookupsJean-François Micouleau2001-07-091-32/+114
| | | | J.F.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-045-40/+40
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-046-35/+13
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Fixed extra file_free calls - my fault :-(.Jeremy Allison2001-07-021-14/+4
| | | | Jeremy.
* Properly instrument print_job_start()/print_job_end() so every fail caseJeremy Allison2001-06-281-4/+20
| | | | | logs a debug. We need this to track fail cases. Jeremy
* SGI compiler fixes.Herb Lewis2001-06-261-0/+6
| | | | Jeremy
* Fix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),Jeremy Allison2001-06-221-5/+5
| | | | | we need to close with close_file(). Jeremy.
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-042-2/+2
|
* merge from 2.2 (deleteprinterdriver RPC)Gerald Carter2001-05-181-0/+101
|
* Replaced a whole bunch of lookup_name() requests inTim Potter2001-05-101-8/+11
| | | | | | construct_default_printer_sdb() with checks of the owner rid instead. This should be much faster, work on non-English systems and systems with renamed user or group names.
* Merging Gerald's "no printer driver" fix from 2.2.Jeremy Allison2001-05-031-0/+10
| | | | Jeremy.
* More debug %d -> %u issues.Jeremy Allison2001-04-271-6/+6
| | | | Jeremy.
* Removed mktemp from HEAD - same as done in 2.2.Jeremy Allison2001-04-182-18/+9
| | | | Jeremy.
* configure:Jeremy Allison2001-04-142-16/+8
| | | | | | | | | | | | | | | | | | | | | | configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Also - in removing the tmpdir param in smbrun an extra NULL parameter was missed in each print_run_command() call (which is a varargs fn.). Now fixed. Jeremy.
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-23/+4
| | | | Jeremy.
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-131-11/+20
| | | | | be read. Jeremy.
* Fixed missing HAVE_STDARG_H.Jeremy Allison2001-04-101-4/+20
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-10/+10
| | | | Jeremy.
* Added per-share security tdb. Tidied up many slprintfs (need -1 on length).Jeremy Allison2001-04-081-38/+39
| | | | Jeremy.
* Sync up with new NT forms code.Jeremy Allison2001-04-031-20/+155
| | | | Jeremy.
* Fixed typo bug spotted by Jim Vopni jimv@metrics.com. Caused no status toJeremy Allison2001-03-281-1/+1
| | | | | | be returned. Jeremy. CVS ----------------------------------------------------------------------
* Patch from itegem <J.P.M.v.Itegem@ele.tue.nl> to handle LPRng v3.16 and above.Jeremy Allison2001-03-271-11/+30
| | | | Jeremy
* Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.Jeremy Allison2001-03-261-1/+13
| | | | Jeremy.
* Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2001-03-231-0/+85
| | | | | | | First one adds a new info level into the lanman printing and an ioctl to the trans2 code. Andrew - this uses ASCII only. It looks ok to me but please check ! Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped. Jeremy.
* Added Michael Sweet's CUPS patch to call directly into the CUPS backend.Jeremy Allison2001-03-162-168/+1023
| | | | | | Parameterises the printing functions so other backends can be plugged directly in (this is a good thing :-). Jeremy.
* Added files for CUP printing patch split.Jeremy Allison2001-03-161-0/+251
| | | | Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-114-20/+9
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-091-1/+1
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* Roll back to using malloc/realloc on some of spoolss in head.Jeremy Allison2001-03-031-39/+15
| | | | | | | | | | I'm having problems with talloc_realloc in the 2.2 branch and I want a stable reference. The only problem is this breaks the clean auto-generated code in *one* call in srv_spoolss.c (the rfnpcnex call). Jeremy.
* Move to talloc controlled NT forms.Jeremy Allison2001-03-021-15/+39
| | | | Jeremy.
* Fixed a couple of getpwXX calls that were not going through the sys_getpwXXJeremy Allison2001-03-011-2/+2
| | | | | cache. Jeremy.
* Move to talloc control of SPOOL_XXX structs. Move to talloc control ofJeremy Allison2001-02-281-55/+34
| | | | | security descriptors and pointers. Syncup with 2.2 tree. Jeremy.
* include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.Jeremy Allison2001-02-231-50/+50
| | | | | | | | | | | | | include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy.
* lib/select.c: Fix for Linux 2.0.x kernel that causes select to return true ↵Jeremy Allison2001-02-221-17/+115
| | | | | | | | | | | on a pipe and then a blocking read to fail. Make the pipe read/write non blocking. printing/printing.c: Added a mutex around the code that enumerates all the jobs in a print queue. Allows only one smbd to be doing this at any one time. This fixes a capacity problem discovered at HP with <10,000 jobs in a print queue. Jeremy.
* Fixed file descriptor leak in error processing of print jobs.Jeremy Allison2001-02-222-52/+47
| | | | | | NT sends "delete on close" to cancel a print job copied from the command line. Deal with this. Merged JohnR's fixes for print job errors. Jeremy.
* Excise snprintf -> slprintf.Jeremy Allison2001-02-161-1/+1
| | | | | | | srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy.
* DEBUG merge from 2.2 about tdb init failure.Herb Lewis2001-02-151-2/+20
| | | | | Patch from David Collier-Brown to print permission error on spool file creation.
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-2/+13
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-293-28/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/include/proto.h - make proto source/printing/nt_printing.c source/rpc_server/srv_spoolss_nt.c - Fix for the overwriting of printerdata entries when WinNT and Win2k are modifying printer parameters on PCL printers. Turns out that Win2k creates a printer with a NULL devmode entry and then expects to set it on *OPEN* (yes this is insane). So we cannot return a "default" devmode for a printer - and we must allow an open to set it. source/tdb/tdb.c - Show freelist in an easier format. Show total free. - When storing a new record, allocate memory for the key + data before the tdb_allocate() as if the malloc fails a (sparse) hole is left in the tdb. source/tdb/tdbtool.c - Show freelist in an easier format. Show total free. source/tdb/Makefile - cleaned up Makefile dependancies source/smbd/lanman.c - Fix for Win9x corrupting it's own parameter string. source/printing/printfsp.c source/printing/printing.c source/rpc_server/srv_spoolss_nt.c source/smbd/close.c - Added normal close parameter into print_fsp_end() which treats an abnormal close as error condition and deletes the spool file.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-261-1/+23
| | | | | | | | source/printing/nt_printing.c - fix for Win2k sending NULL devicemode in setprinter calls which was making NT4 grumpy. The solution is to never set a NULL devicemode if we previously had a valid one in the printer's TDB entry.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-241-8/+17
| | | | | | | | | source/printing/printing.c - When deleting a job, remove the entry from the back-end database if the delete succeeded. This stops a spurious permission denied message appearing if the forced database update is within the lpq cache timeout and doesn't actually delete the job from the database.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-231-10/+42
| | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - add an access check to _spoolss_deleteprinter() to stop random users and passers by from deleting printers. source/lib/messages.c - converted global msg_all struct to a local in message_send_all() function. source/include/smb.h - added a success error code to the spoolss return codes. source/include/proto.h source/param/loadparm.c source/printing/printing.c - Added new parameter "total print jobs" to limit the total number of print jobs across all queues. Currently individual queues are limited by "max print jobs".
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-231-1/+3
| | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - remove redundant srv_spoolss_sendnotify() calls from _spoolss_startdocprinter() and _spoolss_enddocprinter(), as its functionality is already covered in print_job_start() and print_job_end() source/printing/printing.c - force a print_queue_update() prior to print queue purge so that all jobs are purged.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-221-1/+1
| | | | | source/printing/printing.c - remove unused variable
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-221-17/+33
| | | | | | | | | | source/smbd/lanman.c - cleanup and bug fix for win9x print queue purge. source/printing/printing.c - cleanup and bug fix for win9x print queue purge. - print_job_end() changed to cleanup spool file in the event of a failure returned from the print_run_command()