summaryrefslogtreecommitdiffstats
path: root/source/printing
Commit message (Collapse)AuthorAgeFilesLines
* r22853: checkin pending security fixes and release notes updates for Samba ↵samba-3.0.25Gerald Carter2007-05-141-1/+1
| | | | 3.0.25
* r22650: sync up with SMABA_3_0_25 as of svn r22649Gerald Carter2007-05-032-4/+10
|
* r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.Gerald Carter2007-04-091-3/+0
| | | | | * Set VERSION to 3.0.25rc1 * Update release notes.
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-202-23/+196
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-288-158/+359
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r21147: committing changes for 3.0.24Gerald Carter2007-02-051-5/+5
|
* r16703: add crash fix in printer publishing codeGerald Carter2006-06-291-1/+1
|
* r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-4/+4
| | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* r16438: sync up to r16433Gerald Carter2006-06-211-0/+2
|
* r16418: Pull in more Klocwork fixes (up to r16415)Gerald Carter2006-06-203-28/+115
|
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-152-676/+765
|
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-8/+15
|
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2006-04-173-7/+7
| | | | | | | | | 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 Allison2006-04-101-1/+1
| | | | Jeremy.
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2006-04-041-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.
* r14506: Remove remaining references to a KCM credential cache type.Günther Deschner2006-03-171-4/+0
| | | | Guenther
* r14489: Guard against coverity reversion. #181 is a false positiveJeremy Allison2006-03-161-0/+2
| | | | | but make the intent clearer. Jeremy.
* r14273: Fix coverity bug #202. Memory leak on error path.Jeremy Allison2006-03-131-1/+3
| | | | Jeremy.
* r14221: Fix coverity #76. My previous change wasn't quite enough :-).Jeremy Allison2006-03-111-0/+1
| | | | Jeremy.
* r14184: Coverity fix #56. Ensure we can't deref null.Jeremy Allison2006-03-111-1/+1
| | | | Jeremy.
* r14023: My last bug fix still left a potential null deref.Jeremy Allison2006-03-081-8/+9
| | | | | C- "must try harder" :-). Jeremy.
* r14003: Clarify code that lead to Coverity report #13.Jeremy Allison2006-03-082-13/+16
| | | | | Not a bug, but better to remove false positives. Jeremy.
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-074-56/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Deschner2006-02-221-2/+4
| | | | | | | "rename user script" to do the rename of the posix machine account (this might be changed later). Fixes #2331. Guenther
* r13547: add earlier checks to deny deleting a printer driver. The previousGerald Carter2006-02-171-0/+5
| | | | | | code relied upon file permissions alone. Now we check that the user is a printer administrator and that the share has not been marked read only for that user.
* r13408: Remove C++ comments (# 3494)Günther Deschner2006-02-091-2/+2
| | | | Guenther
* r13316: Let the carnage begin....Gerald Carter2006-02-032-5/+11
| | | | Sync with trunk as off r13315
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-023-16/+17
| | | | | | | | 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.
* r12889: BUG 3380: fix crash when changing printer drivers caused by ↵Gerald Carter2006-01-131-0/+2
| | | | accessing a previously freed pointer
* r11855: patch from Aruna Prabakar for checking that the spooler si running ↵Gerald Carter2005-11-221-0/+29
| | | | on HP-UX
* r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We canJeremy Allison2005-10-311-5/+5
| | | | | | | | only tell at parse time from the wire if an incoming name has wildcards or not. If it's a mangled name and we demangle the demangled name may contain wildcard characters. Ensure these are ignored. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-306-63/+132
| | | | | | | * \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 Carter2005-09-271-3/+3
|
* r10554: * BUG 3057: assume x64 drivers are v3 driversGerald Carter2005-09-271-1/+8
| | | | | * BUG 3087: allow smbspool to establisha geust connection using a username with no password
* r10371: Adding iPrint printing backend written by Joel J. Smith @ Novell.Jeremy Allison2005-09-203-0/+1257
| | | | Jeremy.
* r10154: Fix crash bug on security descriptor upgrade (as seen on x86_64).Günther Deschner2005-09-111-1/+2
| | | | Guenther
* r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter2005-08-291-351/+145
| | | | | | | | | | | | | | | | the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management.
* r9244: Fix bugs found by Coverity.Jeremy Allison2005-08-111-3/+21
| | | | Jeremy.
* r9086: * fix invalid read in parse_spoolss when writing a devmode to Gerald Carter2005-08-051-15/+22
| | | | | | | the wire * fix dup_a_regval() when size is 0 * ensure we pass a pstring to unlink_internals (fixes delete_driver code)
* r8686: Revert %LOGONSERVER%-substitution. The substition is done on the client,Günther Deschner2005-07-211-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
* r8543: merge volker's nt_printing_init() fix from trunk (r8526)Gerald Carter2005-07-181-1/+6
| | | | but make sure to write the new version to the ntdrivers.tdb.
* r8506: BUG 2853: don't strip out characters like '$' from printer namesGerald Carter2005-07-151-16/+8
| | | | when substituting for the lpq command.
* r8501: * disable printer handle object cache (was mostly used Gerald Carter2005-07-151-66/+174
| | | | | | | | | | for NT4 clients enumerating printer data on slow CPUs) * fix pinter and secdesc record upgrade to normalize the key (rev'd printer tdb version) * fixed problem that was normalizing the printername name field in general, this should fix the issues upgrading print servers from 3.0.14a to 3.0.20
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2005-07-082-41/+61
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r8089: successfully delete printer subkeys via the registry....now for valuesGerald Carter2005-07-031-0/+32
|
* r8066: * had to modify the printer data storage slightly in ntprinters.tdbGerald Carter2005-07-021-9/+64
| | | | | | | | when packing values. It is a compatible change though and will not require a tdb version upgrade * Can successfully create new printer subkeys via winreg that are immediately available via spoolss calls. Still cannot delete keys yet though. That comes next.
* r8025: *how* can this code have been around so long andGerald Carter2005-06-301-14/+33
| | | | | | | | | | nver normalized the string used for printer and sec_desc key lookups ????? normalized sharename to lower case before storing/fetching from tdb. Need to look at drivers and forms tdb as well (perhaps).
* r7983: clean up some use of un-initialized variables found by valgrindGerald Carter2005-06-281-10/+5
|
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-13/+13
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r7829: fix unitialized printer status field that was breaking migration of ↵Gerald Carter2005-06-221-0/+2
| | | | print queues