summaryrefslogtreecommitdiffstats
path: root/source3/printing
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Allow data flow to be debugged and only log on error. All seems ok now.Jeremy Allison2008-10-101-8/+40
| | | | Jeremy.
* Async is trickier than it looks :-). Don't use a stack variable for a ↵Jeremy Allison2008-10-101-6/+18
| | | | | | private data ptr. Jeremy.
* If you have a large number of cups printers, then scanning for print info ↵Jeremy Allison2008-10-103-31/+259
| | | | | | | | can cause a client to timeout (it takes longer than 30 seconds to enumerate them). Make scanning for printers async with a callback from the main loop. This fixes a bug that was irritating *me* :-). Jeremy.
* Remove SEC_ACCESS. It's a uint32_t.Jeremy Allison2008-10-091-5/+5
| | | | Jeremy.
* Simply our main loop processing. A lot :-). Correctly use events for all the ↵Jeremy Allison2008-10-031-0/+26
| | | | | | | | previous "special" cases. A step on the way to adding signals to the events and being able to merge the S3 event system with the S4 one. Jeremy.
* Don't reject a successful alloc :-(.Jeremy Allison2008-10-021-1/+1
| | | | Jeremy.
* Fix bug #5080. Access to cups-printers via samba broken with cups 1.3.4, ↵Jeremy Allison2008-10-011-90/+251
| | | | | | | | | Unsupported character set. Cups 1.3.4 expects utf8 to be used in all messages to/from the server. We may be using a different character set so we need to use talloc utf8 push/pull functions in all communication. Needs more testing. Don't release until I've done a thorough test. I also have a version for 3.2.x. Jeremy.
* Whitespace cleanup.Jeremy Allison2008-10-011-16/+16
| | | | Jeremy.
* Ensure we null out fsp after a close in all paths.Jeremy Allison2008-09-291-0/+1
| | | | Jeremy.
* Avoid freeing fsp twice when opening new_file fails. (Debian #431696)Jelmer Vernooij2008-09-291-0/+1
| | | | | If opening new_file fails, fsp would still be set to the files_struct of old_file.
* printing: Rename new parameter "cups timeout" to "cups connection timeout".Karolin Seeger2008-09-241-1/+1
| | | | Karolin
* printing: Add new parameter "cups timeout".Karolin Seeger2008-09-231-6/+28
| | | | | | | | | | The default timeout for connections to CUPS servers is set to 5 minutes in the CUPS libraries. The smbd hangs on startup until the timeout is reached if the CUPS server is unreachable. This parameter makes the timeout configurable. The default value is set to 30 seconds. Karolin
* Allow %u parameters for print job username - use advanced subJim McDonough2008-07-161-3/+5
| | | | | | Based on 3.0 and 3.2 patch from Bo Yang <boyang@novell.com> Bo, please verify this version works for you. (This used to be commit 9e6760cfeaf77e80df3b84004090d934f3c2d574)
* remove unused extern current_user from nt_printing.cVolker Lendecke2008-06-261-2/+0
| | | | (This used to be commit b34283adeffaa6e481c57926709ea80d48733ef0)
* Remove current_user reference from printfsp.cVolker Lendecke2008-06-261-4/+2
| | | | (This used to be commit 510f45d01a19ce1c226755ac42a328241098b2e0)
* Change print_access_check to take auth_serversupplied_info instead of ↵Volker Lendecke2008-06-263-54/+56
| | | | | | | current_user Reason: This is the main user of p->current_user which I would like to remove (This used to be commit fd43059b3dfa8cdac9814de1c76f963ba5de9bcb)
* Fix some scary FC9 warningsVolker Lendecke2008-06-101-39/+41
| | | | | (cherry picked from commit 6b0fed09ea34409d1c61bae9121bdb38d4c68d62) (This used to be commit f1e85ff2bc4eea2c50d7d71caca16b9051ca5e8c)
* Remove the reference to current_user_info from share_access.cVolker Lendecke2008-05-251-1/+1
| | | | | This required to pass around the domain a bit (This used to be commit 17b0db20d28d1b737c5e86b78106657e8ca5ce9c)
* Cleanup size_t return values in callers of convert_string_allocateTim Prouty2008-05-201-2/+3
| | | | | | This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
* Try and fix bug #5095, "Manage Documents privilege is not functional".Jeremy Allison2008-05-051-11/+24
| | | | | | | Should map the created sd to printer jobs, not printer. Jerry please test and I'll add to 3.2 if it passes. Thanks, Jeremy. (This used to be commit 0a1fe8d6013d925ab6695f6b7f189b731ec42ccc)
* Remove "userdom_struct user" from "struct user_struct"Volker Lendecke2008-05-051-3/+6
| | | | (This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
* Fix from Martin Zielinski <mz@seh.de>. Don't delete files whenJeremy Allison2008-04-241-7/+20
| | | | | | they're in use by other drivers. Jeremy. (This used to be commit 205c352caeb32693a02fcfaeb3f18515719ac373)
* Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2008-04-231-1/+1
| | | | | | | | We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-) (This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
* printing: call reinit_after_fork() in the backgroundqueue processStefan Metzmacher2008-04-181-0/+5
| | | | | metze (This used to be commit 9adb675a86e81c90e2bddfe984b5ac8f201fec75)
* Fix typos.Karolin Seeger2008-04-091-1/+1
| | | | | Karolin (This used to be commit 6cee34703503fbf3629057345fe221b866560648)
* Fix bug #5372. With a large CUPS installation with a remote server, contactingJeremy Allison2008-04-041-11/+38
| | | | | | | | | the server when searching for a name for the location and comment fields can take so much time the client times out. When searching for a name we don't use these fields anyway, so add a function get_a_printer_search() which doesn't contact the CUPS server. Jeremy. (This used to be commit 92d9f20852d5384e92a93dd0b051034718840ca8)
* use tdb_wipe_all() instead of tdb_wipe() - it is faster...Michael Adam2008-03-261-1/+1
| | | | | Michael (This used to be commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
* util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().Michael Adam2008-03-251-1/+1
| | | | | | | | Replace all callers of traverse with this tdb_traverse_delete_fn() and don't export tdb_traverse_delete_fn() anymore. Michael (This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
* Some simplificationsVolker Lendecke2008-03-171-7/+3
| | | | (This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)
* Coverity fixesMarc VanHeyningen2008-03-171-9/+20
| | | | (This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
* Fix some typos.Karolin Seeger2008-02-081-1/+1
| | | | | Karolin (This used to be commit 2bec0a1fb7857e6fb8ec15e5f597b2d4125f105b)
* Adding missing calls to va_end().Tim Potter2008-01-271-0/+4
| | | | | | | | | Just a small commit to get a handle on this git thingy. This patch fixes some missing calls to va_end() to match various calls to va_start() and VA_COPY(). Tim. (This used to be commit ec367f307dff7948722b9ac97beb960efd91991f)
* strtok -> strtok_rVolker Lendecke2008-01-233-4/+9
| | | | (This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
* Fix a crash bug in nt_printer_publish_adsVolker Lendecke2008-01-161-1/+6
| | | | | Reported by Martin Zielinski <mz@seh.de> (This used to be commit 4db26c803de52d3efccc940efc55f14131a057f5)
* Fix CID 498. Ensure we don't prs_mem_free an uninitializedJeremy Allison2008-01-111-1/+6
| | | | | | prs_struct. Jeremy. (This used to be commit 7b9d9fba230b9e61079869a6a2751cda37fb8a9e)
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-072-3/+3
| | | | | Michael (This used to be commit 0b86c420be94d295f6917a220b5d699f65b46711)
* Remove redundant parameter fd from SMB_VFS_LSEEK().Michael Adam2008-01-071-4/+4
| | | | | Michael (This used to be commit df929796f2698698d2875227bda8500589cca2df)
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-1/+1
| | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)