summaryrefslogtreecommitdiffstats
path: root/source3/printing
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-printing: Fix vlp testprinter application.Günther Deschner2009-05-121-24/+23
| | | | | | | | | | Jeremy, we cannot just access cache_path() here without calling lp_load and friends as well as parsing configfile from the commandline in order to make "make test/selftest" find the correct conffile with path, etc. I just changed it to pass the target tdbfilename as an argument, ok ? Guenther
* Hopefully fix the buildfarm. Add some debug level 10 messagesJeremy Allison2009-05-112-5/+20
| | | | | | | | I used to track down the vlp problem, change the vlp test printer not to use a static path of /tmp/vlp.tdb for the virtual print database (as this will eventually fill up). Cause it to use a virtual print database inside the cachepath. Jeremy.
* s3-printing: simplify print_queue helper functions and return WERROR.Günther Deschner2009-05-061-17/+10
| | | | Guenther
* s3-printing: rework move_driver_file_to_download_area() a bit for clarity.Günther Deschner2009-04-301-32/+40
| | | | Guenther
* s3-printing: use move_driver_file_to_download_area() to avoid code duplication.Günther Deschner2009-04-301-144/+54
| | | | Guenther
* s3-printing: add move_driver_file_to_download_area().Günther Deschner2009-04-301-0/+40
| | | | Guenther
* s3:nt_printing: fix a comment typoMichael Adam2009-04-271-1/+1
| | | | Michael
* s3:registry: replace typedef REGISTRY_VALUE by struct regval_blobMichael Adam2009-04-271-4/+4
| | | | Michael
* s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.Michael Adam2009-04-271-9/+9
| | | | | | | This paves the way for hiding the typedef and the implementation from the surface. Michael
* Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() ifJelmer Vernooij2009-04-201-1/+1
| | | | the system one is broken.
* s3-printing: use ARRAY_SIZE() macro in forms functions.Günther Deschner2009-04-201-6/+5
| | | | Guenther
* s3-printing: use sec_initial_uid() instead "0" in print_access_check().Günther Deschner2009-04-201-1/+1
| | | | | | Another babystep in order to make us pass RPC-SPOOLSS. Guenther
* s3-spoolss: remove unused dup_nt_devicemode().Günther Deschner2009-04-141-28/+0
| | | | Guenther
* s3-libads: avoid NULL talloc context with ads_get_dn().Günther Deschner2009-04-071-1/+1
| | | | Guenther
* s3:libads Make ads_get_dn() take a talloc contextAndrew Bartlett2009-04-061-2/+2
| | | | | | | | | | | | Also remove ads_memfree(), which was only ever a wrapper around SAFE_FREE, used only to free the DN from ads_get_ds(). This actually makes libgpo more consistant, as it mixed a talloc and a malloc based string on the same element. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:printing Convert nt_printer_publish_ads() to use talloc betterAndrew Bartlett2009-04-061-26/+18
| | | | | | | | In particular, this removes one more user of pull_utf8_allocate() Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3/cups: add encryption supportBjörn Jacke2009-03-301-0/+5
|
* s3-spoolss: apply some const in spoolss server.Günther Deschner2009-03-201-4/+7
| | | | Guenther
* s3-spoolss: use printer and job notify enums provided by idl.Günther Deschner2009-03-181-15/+15
| | | | Guenther
* s3-printing: use marshall/unmarshall_sec_desc_buf in sec_desc_upg_fn().Günther Deschner2009-03-181-26/+5
| | | | Guenther
* s3:printing: use tevent_loop_wait() instead of manual loopingStefan Metzmacher2009-03-181-50/+6
| | | | metze
* s3:printing: use a fd event to monitor the pipe to the parentStefan Metzmacher2009-03-181-3/+23
| | | | metze
* s3-spoolss: rename temporary convert_devicemode_new function.Günther Deschner2009-03-171-12/+13
| | | | Guenther
* s3-spoolss: remove obsolete get_a_builtin_ntform.Günther Deschner2009-03-171-7/+0
| | | | Guenther
* s3-spoolss: make jobname a const char * in print_job_start().Günther Deschner2009-03-121-1/+1
| | | | Guenther
* Only copy sharename up from rap_to_pjobidVolker Lendecke2009-03-012-3/+4
| | | | | | | | | | | | | | Why?? :-) Another one of the little micro-optimizations that I just came across: If you allocate a variable in a sub-block like the "fstring sharename" in write_file(), gcc even with -O3 will allocate this variable unconditionally on the stack at the beginning of the routine. So with eliminating this fstring we cut 256 bytes of stack in a very hot code path writing to a file. It might make us a bit more cache-friendly. This would probably not be worth a second look if it involved larger code changes, but this one was just too simple to let it pass :-)
* s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.Günther Deschner2009-02-271-6/+6
| | | | Guenther
* s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQMichael Adam2009-02-261-1/+1
| | | | | | Günther, please check... Michael
* Fix some NetBSD warnings.Jeremy Allison2009-02-251-2/+4
| | | | Jeremy.
* s3-spoolss: use marshall/unmarshall_sec_desc_buf in nt_printing_setsec/getsec.Günther Deschner2009-02-241-45/+35
| | | | Guenther
* s3-spoolss: fix notify_printer_status_byname.Günther Deschner2009-02-241-1/+3
| | | | | | | | | | | | | | | | | | | This took me almost a week to find, so here a little longer explanation: When a windows client registers printer *status* change notifies using spoolss_RemoteFindFirstChangeNotify, it registers them to a print server handle, not a printer handle. We were then correctly monitoring the printer status changes but were sending out the spoolss_RouterReplyPrinterEx via the back-channel connection with job_id set to 0 (which we only may do for monitored printer change status notifies on printer handlers, not print server handles). Windows was then showing a new empty dummy printer icon in the explorer as it cannot route the notify event to the approriate local handle. It also discarded the content of the notify event message of course. With this, printer change notify for pausing, resuming and purging printers nicely works again here. Jerry, Tim and all other printing gurus, please check. Guenther
* Fix printf warnings found on systems where time_t <> long int.Jeremy Allison2009-02-191-1/+1
| | | | Jeremy.
* S3: Stop creating SMBD cores when failing to create a pipe.todd stecher2009-02-181-3/+7
| | | | | | This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
* Fix Coverity ID 740 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+2
|
* s3-spoolss: remove more whitespace.Günther Deschner2009-02-101-135/+135
| | | | Guenther
* s3-spoolss: remove whitespace in printing code.Günther Deschner2009-02-091-322/+322
| | | | Guenther
* s3-spoolss: restore delete_a_form().Günther Deschner2009-02-091-10/+1
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_SetForm.Günther Deschner2009-02-091-12/+10
| | | | Guenther
* s3-spoolss: use pidl for spoolss_AddForm.Günther Deschner2009-02-091-15/+13
| | | | Guenther
* s3-spoolss: rework some form functions and add form_by_string functions.Günther Deschner2009-02-071-10/+21
| | | | Guenther
* s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLDStefan Metzmacher2009-01-271-15/+3
| | | | metze
* s3:printing: make some functions static and use tevent functionsStefan Metzmacher2009-01-221-8/+12
| | | | metze
* s3:printing: handle tevent_context events in the sys_select() callStefan Metzmacher2009-01-221-16/+42
| | | | metze
* s3: put printing/ under cache_dir, not lock_dirMichael Adam2009-01-163-4/+4
| | | | Michael
* Attempt to fix crash seen with new CUPS async printcap loading code.Jeremy Allison2009-01-051-0/+3
| | | | Jeremy.
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-01-053-4/+5
|\
| * s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-051-2/+1
| | | | | | | | metze
| * clean event context after child is forked.Bo Yang2009-01-052-2/+4
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* | Add iconv_convenience argument to size functions.Jelmer Vernooij2009-01-011-3/+4
|/
* Fix an ancient uninitialized variable readVolker Lendecke2008-12-311-5/+5
| | | | The callers of open_file_ntcreate expect *psbuf to be filled correctly