summaryrefslogtreecommitdiffstats
path: root/source/printing/printing.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Change print_access_check to take auth_serversupplied_info instead of ↵Volker Lendecke2008-06-261-45/+48
| | | | | | current_user Reason: This is the main user of p->current_user which I would like to remove
* Remove "userdom_struct user" from "struct user_struct"Volker Lendecke2008-05-051-3/+6
|
* 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 :-)
* printing: call reinit_after_fork() in the backgroundqueue processStefan Metzmacher2008-04-181-0/+5
| | | | metze
* Fix typos.Karolin Seeger2008-04-091-1/+1
| | | | Karolin
* use tdb_wipe_all() instead of tdb_wipe() - it is faster...Michael Adam2008-03-261-1/+1
| | | | Michael
* 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
* Fix some typos.Karolin Seeger2008-02-081-1/+1
| | | | Karolin
* Remove a globalVolker Lendecke2007-12-281-9/+15
|
* Tiny simplificationsVolker Lendecke2007-12-101-1/+1
| | | | | | locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only)
* remove a staticVolker Lendecke2007-12-101-12/+18
|
* Change tdb_unpack "P" to return a malloc'ed string ratherJeremy Allison2007-12-031-3/+7
| | | | | | than expect a pstring space to put data into. Fix the (few) callers. Jeremy.
* Remove pstrcpy I missed.Jeremy Allison2007-11-201-1/+0
| | | | Jeremy.
* Remove more pstring. Unify talloc_sub functions to makeJeremy Allison2007-11-191-30/+51
| | | | | | them a better match for replacing string_sub. Remove more unused code. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-37/+37
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25399: Excise uint - > uint32 (where appropriate) or unsigned int.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23168: Move the lp_max_connections() into service.c.Volker Lendecke2007-10-101-1/+1
|
* r23167: Remove an unused parameterVolker Lendecke2007-10-101-1/+1
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-10-101-1/+1
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r22954: More messaging_registerVolker Lendecke2007-10-101-8/+10
|
* r22895: Convert some more calls from message_send_buf to messaging_send_bufVolker Lendecke2007-10-101-2/+3
|
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-10-101-1/+2
| | | | tomorrow.
* r22747: Fix some C++ warningsVolker Lendecke2007-10-101-1/+1
|
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-17/+17
| | | | | | and fix all compiler warnings in the users metze
* r21988: make use of string_tdb_data()Stefan Metzmacher2007-10-101-8/+5
| | | | | | to avoid creating the TDB_DATA struct from strings "by hand" metze
* r21446: Karolins "printjob username"Volker Lendecke2007-10-101-1/+5
|
* r21064: The core of this patch isVolker Lendecke2007-10-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r20124: clean up nested extern declaration warningsHerb Lewis2007-10-101-2/+2
|
* r17590: Some C++ WarningsVolker Lendecke2007-10-101-6/+6
|
* r17293: After the results from the cluster tests in Germany,Jeremy Allison2007-10-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | fix the messaging code to call the efficient calls : save_re_uid() set_effective_uid(0); messaging_op restore_re_uid(); instead of using heavyweight become_root()/unbecome_root() pairs around all messaging code. Fixup the messaging code to ensure sec_init() is called (only once) so that non-root processes still work when sending messages. This is a lighter weight solution to become_root()/unbecome_root() (which swaps all the supplemental groups) and should be more efficient. I will migrate all server code over to using this (a similar technique should be used in the passdb backend where needed). Jeremy.
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-17/+28
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16648: Fix bug #3889 reported by jason@ncac.gwu.edu.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r16626: Fix bug #3878. Reported by jason@ncac.gwu.edu.Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* r16599: Make it clear to Klocwork we're not dereferencing. Issue #2026.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r16216: Add debug messages to make it possible to try andJeremy Allison2007-10-101-8/+31
| | | | | | debug why a job pause or resume command is not being done. Jeremy.
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-101-5/+5
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r15025: Fix exit_server_cleanly call.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2007-10-101-1/+1
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2007-10-101-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13622: Allow to rename machine accounts in a Samba Domain. This still uses theGünther Deschner2007-10-101-2/+4
| | | | | | | "rename user script" to do the rename of the posix machine account (this might be changed later). Fixes #2331. Guenther
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2007-10-101-7/+8
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-46/+113
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10555: a few compile warnings from jason MaderGerald Carter2007-10-101-3/+3
|
* r10371: Adding iPrint printing backend written by Joel J. Smith @ Novell.Jeremy Allison2007-10-101-0/+6
| | | | Jeremy.
* r9244: Fix bugs found by Coverity.Jeremy Allison2007-10-101-3/+21
| | | | Jeremy.
* r8686: Revert %LOGONSERVER%-substitution. The substition is done on the client,Günther Deschner2007-10-101-1/+1
| | | | | | | | | | | not on the server. We now preserve this windows variable (important for vampired setups) and correctly substitute only the "%L"s in strings like: "%LOGONSERVER% %L %lOgOnSeRvEr% %L". Guenther