summaryrefslogtreecommitdiffstats
path: root/source3/printing
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix a memory leak in cups_pull_comment_locationVolker Lendecke2008-12-301-0/+4
| | | | We allocated "request" with ippNew, so we also should ippDelete it.
* Fix a spinning smbd when printingVolker Lendecke2008-12-301-1/+1
| | | | | | Without this, we end up adding more than one timed event. In the event handler print_notify_event_send_messages() only one event will be deleted, all others will fire indefinitely.
* Fix more asprintf warnings and some error path errors.Jeremy Allison2008-12-232-12/+14
| | | | Jeremy.
* Fix more asprintf errors and error code paths.Jeremy Allison2008-12-231-3/+5
| | | | Jeremy.
* Fix bug #5688 LPQ process is orphaned if socket address parameter is invalidSATOH Fumiyasu2008-12-091-6/+33
|
* Fix nonempty blank linesVolker Lendecke2008-12-071-5/+5
|
* s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argumentTim Prouty2008-12-031-3/+3
| | | | | | This replaces the is_dos_path bool with a more future-proof argument. The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead of overridding the oplock_request.
* s3: Modify direct callers of open_file_ntcreate and open_directory to call ↵Tim Prouty2008-12-031-24/+54
| | | | SMB_VFS_CREATE_FILE
* Convert delete_driver_files to use create_conn_structVolker Lendecke2008-11-241-30/+32
| | | | Jerry, please check!
* Convert get_correct_cversion to use create_conn_structVolker Lendecke2008-11-241-45/+50
| | | | Jerry, please check!
* Convert move_driver_to_download_area to use create_conn_structVolker Lendecke2008-11-241-33/+23
| | | | | | | | | This removes a use of struct current_user and the vuid The become_user() here is unnecessary, within the spoolss handling code we have switched to the authenticated pipe user anyway. Jerry, please check!
* First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.Jeremy Allison2008-11-211-13/+2
| | | | | | Restructures parts of open code so that fsp must be allocated before calling open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c. Jeremy.
* Remove an unused variableVolker Lendecke2008-11-021-1/+0
|
* Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij2008-11-011-2/+2
|
* Unify se_access_check with the S4 code. Will makeJeremy Allison2008-10-311-5/+5
| | | | | | calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier for files. Jeremy.
* Allow a new file to inherit the Windows ACL from its parent.Jeremy Allison2008-10-291-3/+3
| | | | | Now to do the same for directories. Jeremy.
* vlp: Move closer to the code tested.Kai Blin2008-10-192-0/+450
|
* Remove silly safe_free() function which is a wrapper around SAFE_FREE().Jelmer Vernooij2008-10-193-10/+9
| | | | | | | | Since it's a function it just sets the local pointer to NULL and basically is an equivalent to free(). It also claims it's being used for callbacks but isn't used that way anywhere.
* Use GUID_from_string.Jelmer Vernooij2008-10-141-1/+1
|
* Use GUID_string rather than smb_uuid_string().Jelmer Vernooij2008-10-141-2/+2
|
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-2/+2
|
* Pass struct smb_request to file_freeVolker Lendecke2008-10-132-7/+7
| | | | on the way to get rid of chain_fsp
* Pass struct smb_request to file_newVolker Lendecke2008-10-131-2/+3
| | | | Goal is to remove the chain_fsp global variable
* Use common util_file code.Jelmer Vernooij2008-10-123-11/+11
|
* Fix the buildVolker Lendecke2008-10-121-1/+1
|
* Cope with changed signature of http_timestring().Jelmer Vernooij2008-10-111-1/+1
|
* Initialize near creation of resource. Makes code clearer.Jeremy Allison2008-10-101-0/+2
| | | | Jeremy.
* Ensure we do reinit_after_fork().Jeremy Allison2008-10-101-0/+5
| | | | Jeremy.