summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix coverity CID 930. Pointer check can never be null here.Jeremy Allison2009-07-171-1/+1
| | | | Jeremy
* Fix coverity CID 931. This check is redundent as smb_fname canJeremy Allison2009-07-171-1/+1
| | | | | never be null in this function. Jeremy.
* Fix a typo reading uninitialized memory. Caught by valgrind.Jeremy Allison2009-07-171-3/+1
| | | | Jeremy.
* Move the initialization of smbd_server_conn from smbd/process,Jeremy Allison2009-07-172-5/+5
| | | | | | | | | | | | | | | | | | | | | after the accept and fork, to smbd_init_globals(), so it's done immediately on server startup. This is needed as some messages are sent to all active smbd processes (including the master listening daemon). If it gets a message that forces it to scan it's current connections (ie. conn_find()) then it discovers that sconn->smb1.tcons.Connections dereferences null (as sconn == NULL in the parent) and crashes. Yes, I could fix all cases where sconn is used and explicitly check for NULL but this fix is easier. It means that the smbd_event_context() is initialized in the master daemon and then re-initialized after fork, but that should be being done correctly in every fork call anyway. Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789 still panics in the reproducible test case for bug 6564, as this is one case where such a message (MSG_SMB_CONF_UPDATED) is sent to the parent. Metze please check. This change passes valgrind. Jeremy.
* Fix bug #6564 - SetPrinter fails (panics) as non root.Jeremy Allison2009-07-172-0/+5
| | | | | Missing become_root()/unbecome_root() around reload_services. Jeremy.
* s3-rpcclient: add createprinteric command.Günther Deschner2009-07-171-0/+43
| | | | Guenther
* s3-lsa: let _lsa_Delete return NT_STATUS_NOT_SUPPORTED as w2k3 does.Günther Deschner2009-07-171-6/+10
| | | | Guenther
* s3-lsa: Fix access_mask calculation for new handle in _lsa_CreateAccount().Günther Deschner2009-07-171-6/+24
| | | | Guenther
* s3-lsa: add (not yet activate) level specific access checks for ↵Günther Deschner2009-07-171-0/+42
| | | | | | _lsa_QueryInfoPolicy. Guenther
* s3-lsa: also implement level 13 in lsa_QueryInfoPolicy.Günther Deschner2009-07-171-19/+24
| | | | Guenther
* s3-lsa: Fix policy handle memleak and handle type check in _lsa_DeleteObject().Günther Deschner2009-07-171-4/+14
| | | | Guenther
* s3-rpcclient: add LSA storeprivatedata command.Günther Deschner2009-07-171-0/+56
| | | | Guenther
* s3-rpcclient: add LSA retrieveprivatedata command.Günther Deschner2009-07-171-0/+60
| | | | Guenther
* s3-rpcclient: add LSA setsecret command.Günther Deschner2009-07-171-0/+71
| | | | Guenther
* s3-rpcclient: add LSA querysecret command.Günther Deschner2009-07-171-0/+86
| | | | Guenther
* s3-rpcclient: add LSA deletesecret command.Günther Deschner2009-07-171-0/+50
| | | | Guenther
* s3-rpcclient: add LSA createsecret command.Günther Deschner2009-07-171-0/+43
| | | | Guenther
* s3: compile warning and upn handlingBo Yang2009-07-182-1/+7
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* s3: don't do this, upper callbacks will check itBo Yang2009-07-181-4/+0
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* s3: Fix crsh in net usershare listBo Yang2009-07-181-0/+1
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* More conversions of NULL -> talloc_autofree_context()Jeremy Allison2009-07-163-19/+24
| | | | | so we at least know when we're using a long-lived context. Jeremy.
* Replace more long-lived contexts with talloc_autofree_context().Jeremy Allison2009-07-162-2/+2
| | | | Jeremy.
* Replace short-lived NULL talloc contexts with talloc_tos().Jeremy Allison2009-07-163-22/+22
| | | | Jeremy.
* Remove an unused talloc context.Jeremy Allison2009-07-161-8/+2
| | | | Jeremy.
* s3-lsa: Fix pointless check for sec_info flags in _lsa_QuerySecurity().Günther Deschner2009-07-171-13/+3
| | | | Guenther
* s3-lsa: implement _lsa_LookupPrivName().Günther Deschner2009-07-171-6/+45
| | | | Guenther
* s3-lsa: implement _lsa_EnumAccountsWithUserRight().Günther Deschner2009-07-171-6/+57
| | | | Guenther
* Tidyup prompted by #6554 - Wrong deallocation in sam_account_ok.Jeremy Allison2009-07-161-2/+3
| | | | Jeremy.
* s3-rpc_parse: remove more unused code.Günther Deschner2009-07-162-334/+0
| | | | Guenther
* s3-spoolss: make some of the command hooks static.Günther Deschner2009-07-162-6/+3
| | | | Guenther
* Fix bug #6551 - win98 clients cannot connect after server upgrade to ↵Jeremy Allison2009-07-152-0/+3
| | | | | | | | samba-3.4.0. The values of vuid and tid were not being correctly updated in the struct smb_request when passed to chain_reply inside sessionsetupX and tconX. Jeremy.
* s3:smbd: try to fix a compiler warning on i386 : left shift count >= width ↵Stefan Metzmacher2009-07-151-1/+1
| | | | | | of type metze
* s3:libsmb: we need to include "includes.h" as first header to let code build ↵Stefan Metzmacher2009-07-151-1/+1
| | | | | | | | on all platforms This should fix the Tru64 build. metze
* s3:tldap: fix the build - a void function should not return a valueStefan Metzmacher2009-07-151-3/+3
| | | | metze
* Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.Jeremy Allison2009-07-155-91/+247
| | | | Jeremy.
* s3: make linking of rpcclient --as-needed safeBjörn Jacke2009-07-151-2/+2
|
* s3: make linking of cifs.upcall --as-needed safePeter Volkov2009-07-151-1/+1
| | | | See http://www.gentoo.org/proj/en/qa/asneeded.xml for details.
* s3:dbwrap: fix embarrassing typo :-)Michael Adam2009-07-151-1/+1
| | | | Michael
* s3:registry: db backend: add my CMichael Adam2009-07-151-0/+1
| | | | Michael
* s3:registry: flush the provided subkey_ctr in regdb_fetch_keys_internal()Michael Adam2009-07-151-0/+3
| | | | | | | | This way, we always return what has really been read from the db, and not more. The callers assume exactly this, but one could hand in an already pre-filled subkey container... Michael
* s3:registry: add function regsubkey_ctr_reinit()Michael Adam2009-07-152-0/+24
| | | | | | | This reinitializes an already allocated regsubkey_ctr structure, emptying out the subkey array and hash table. Michael
* s3:registry: turn regdb_fetch_keys_internal() from int to WERROR return typeMichael Adam2009-07-151-32/+53
| | | | | | This way, more error information is propagated to the callers. Michael
* s3:registry: use transaction wrapper in create_sorted_subkeys()Michael Adam2009-07-151-48/+51
| | | | Michael
* s3:registry: restructure logic of create_sorted_subkes() slightlyMichael Adam2009-07-151-14/+19
| | | | | | | This makes it clearer to me, and it also makes it easier to use the transaction retry wrapper in the next step. Michael
* s3:registry: use transaction wrapper in regdb_delete_subkey().Michael Adam2009-07-151-37/+49
| | | | Michael
* s3:registry: add a comment header for the delete_subkey set of commands.Michael Adam2009-07-151-0/+4
| | | | Michael
* s3:registry: add a comment header for the create_subkey set of functionsMichael Adam2009-07-151-0/+4
| | | | Michael
* s3:registry: use transaction wrapper in regdb_create_subkey()Michael Adam2009-07-151-31/+42
| | | | Michael
* s3:registry: use transaction wrapper in regdb_store_keys_internal().Michael Adam2009-07-151-96/+102
| | | | Michael
* s3:registry: don't leak to talloc_stack in regdb_store_keys_internal2()Michael Adam2009-07-151-2/+9
| | | | | | and catch one potential talloc failure. Michael