summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-03-10fixed a bug in message handling for code the change notify codeAndrew Tridgell1-2/+16
The change notify code registered a separate message handler for each tree connect. This registration uses the global messaging context. The messaging code would consider a 2nd registration for the same messaging type as being an 'update' of the handler, rather than a new handler. It also would only call the first handler in the linked list for a given message type when dispatching messages. This patch changes the messaging code to allow for multiple registrations of the same message type, and allow for multiple calls to different messaging handler for one incoming message. This fixes the problem with the test_notify_tcon() test that I recently committed to the S4 smbtorture
2009-03-09Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij5-308/+227
2009-03-09s3:lib: interfaces.c isn't used in the configure tests anymoreStefan Metzmacher1-73/+1
libreplace always provides the getifaddr() function. This fixes the build on sles8. metze
2009-03-09fix "dubious escape" warning of Studio compilerBjörn Jacke1-1/+1
2009-03-08Don't copy the winbindd_request in wb_transVolker Lendecke1-30/+2
2009-03-08Convert wb_open_pipe to tevent_reqVolker Lendecke1-51/+47
2009-03-08Convert wb_connect to tevent_reqVolker Lendecke1-38/+30
2009-03-08Convert wb_int_trans to tevent_reqVolker Lendecke1-69/+63
2009-03-08Add parameter "queue" to wb_int_trans_sendVolker Lendecke1-6/+7
2009-03-08Move "struct req_read_state" where it belongsVolker Lendecke1-5/+5
2009-03-08Convert wb_resp_write to tevent_reqVolker Lendecke1-13/+12
2009-03-08Convert wb_resp_read to tevent_reqVolker Lendecke2-25/+22
2009-03-08Convert wb_req_read to tevent_reqVolker Lendecke1-17/+16
2009-03-08Convert wb_req_write to tevent_reqVolker Lendecke2-27/+28
2009-03-08Add tevent_req wbc helpersVolker Lendecke1-0/+37
2009-03-08Add "queue" to writev_sendVolker Lendecke1-2/+2
Unless higher levels queue themselves somehow, writev will *always* be queued. So the queueing should be done at the right level.
2009-03-08Revert accidental reintroduction of void ** bug.Jelmer Vernooij1-1/+1
2009-03-06s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mappingStefan Metzmacher1-0/+3
If someone knows a better dos error, please tell me... metze
2009-03-04s3:dbwrap_ctdb_marshall_add: don't leak the ctdb_rec_data to the outsideMichael Adam1-6/+6
Michael
2009-03-04s3:smbconf: move smbconf_share_exists checks into backendMichael Adam1-4/+9
Michael
2009-03-04s3: Remove madvise supportSteven Danneman1-7/+0
This reverts 193be432. The MADVISE_PROTECT is inherited by all child processes and cannot be unset. The intention of the original patch was to protect the parent process, but allow children to be killed in low memory. Since this isn't possible with the current API, reverting the whole feature.
2009-03-04s3: Fix a memleak in dbwrap_rbt.Michael Adam1-4/+4
The SMB_MALLOC'ed rbt node data was not free'd on talloc free of the db context. This is a quick fix using talloc instead of malloc for allocation of the node data. Since malloc was originally used for performance reasons, one might want to reverse to malloc and create a talloc destructor that walks the tree and frees all the node data if this talloc approach proves to be too slow.. Michael
2009-03-03Fix "ignore return" warning.Jeremy Allison1-2/+3
Jeremy.
2009-03-02Fix wbclient.c wrt tevent_req changes too.Simo Sorce1-4/+3
2009-03-02Attempt to fix the buildVolker Lendecke1-2/+2
Simo, with which compiler did you build this? I'd be curious to learn about the compiler settings that make this build. Thanks, Volker
2009-03-02Make struct tevent_req opaqueSimo Sorce2-30/+23
Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02Use samba3's own iconv implementation for now, until all changes areJelmer Vernooij1-2/+2
merged.
2009-03-01s3: Fix incompatible type warningsTim Prouty1-1/+1
2009-03-01Merge branch 'master' of git://git.samba.org/samba into convenienceJelmer Vernooij3-411/+16
2009-03-01Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij2-3/+3
2009-03-01Move secacl to top-level.Jelmer Vernooij1-118/+0
2009-03-01Move secace.c to top-level.Jelmer Vernooij2-293/+16
2009-03-01Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-nextJelmer Vernooij1-4/+4
2009-03-01Move next_token_talloc() to top-level.Jelmer Vernooij1-112/+0
2009-03-01Eliminate two duplicate SEC_ACE_TYPE constants already provided byJelmer Vernooij1-4/+4
security.idl.
2009-02-28Fix async reading winbindd_responseVolker Lendecke1-1/+1
2009-02-26Remove a temporary debug message -- sorryVolker Lendecke1-1/+0
2009-02-26Convert open_socket_out to tevent_reqVolker Lendecke1-41/+41
2009-02-26s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam1-0/+18
This is useful for wrapping higher level aggregate operations in transactions. The text backend implementations just return WERR_OK, the registry backend implementatoins use the regdb_transaction_start|commit|cancel routines just added. Michael
2009-02-26Add db_tdb_parseVolker Lendecke1-0/+12
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Add dbwrap->parse_recordVolker Lendecke1-0/+26
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-115/+41
For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-0/+3
With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-25s3: Report the correct path when dumping core on FreeBSDTim Prouty1-1/+83
Utilize the kern.corefile sysctl value on FreeBSD
2009-02-25s3: Refactor and cleanup the error paths in dump_core_setupTim Prouty1-42/+49
2009-02-25s3:events: map TEVENT_DEBUG_TRACE to debug level 10Stefan Metzmacher1-1/+1
metze
2009-02-24s3: Fix a bug that prevent core files from being createdTim Prouty1-1/+0
Removed an erroneous free() that was causing the corepath to be NULL during dump_core(). This prevented dump_core() from actually calling abort() to create a core file. The bug was introduced in December by: 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00
2009-02-24Use read_packet for wb_resp_readVolker Lendecke1-90/+29
2009-02-24Use read_packet for wb_req_readVolker Lendecke1-92/+36
2009-02-24Remove read_pktVolker Lendecke1-99/+0