summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-03-10s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher4-17/+43
metze
2009-03-10s3:libsmb: only treat a return 0 as end of fileStefan Metzmacher1-4/+1
metze
2009-03-10s3:libsmb: fix a lot of cli_push() bugsStefan Metzmacher1-95/+107
There were the following problems: 1.) if window_size was a multiple of the chunk_size, we silently dropped the last truncated chunk. 2.) if window_size was 0 pushed only the first chunk to the server and silently dropped the rest. 3.) we had only transferred state->num_reqs writes, even if there would be more data to send. metze
2009-03-10socket_wrapper: wrap readv() and writev()Stefan Metzmacher2-7/+137
metze
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-10added a test that triggers a bug in the Samba3 notify codeAndrew Tridgell1-0/+169
The Samba3 internal notify code doesn't work correctly when there is more than one tree connect to the same smbd process. This change to the RAW-NOTIFY test triggers the bug.
2009-03-09Fix potential segfaults using freed memory.Simo Sorce4-10/+54
In some code paths ltdb_context was still referenced even after we were returned an error by one of the callbacks. Because the interface assumes that once an error is returned the ldb_request may be freed, and because the ltdb_context was allocated as a child of the request, this might cause access to freed memory. Allocate the ltdb_context on ldb, and keep track of what's going on with the request by adding a spy children on it. This way even if the request is freed before the ltdb_callback is called, we will safely free the ctx and just quietly return.
2009-03-09Fix prototype mismatch.Jelmer Vernooij1-1/+1
2009-03-09Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij50-1834/+2040
2009-03-09use LIB_PATH_VAR in selftest.sh if we have itBjörn Jacke1-6/+7
if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively complain about not having it and use the most likely LD_LIBRARY_PATH. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-09s3/packaging: Fix typo in comment.Karolin Seeger1-1/+1
Karolin
2009-03-09s3/packaging: Package new files properly.Karolin Seeger1-0/+6
That is part of the fix for bug #6144. Thanks to Diego Remolina dijuremo [at] gatech [dot] edu for reporting! Karolin
2009-03-09Fix a typoVolker Lendecke1-1/+1
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-09socket_wrapper: try to make ipv6 support more portableStefan Metzmacher1-9/+22
The internal structure of in6_addr isn't always the same. metze
2009-03-08socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest ↵Stefan Metzmacher1-5/+13
is ipv4 We only do this if the socket isn't explicit bound yet. metze
2009-03-08socket_wrapper: correctly handle connected dgram socketsStefan Metzmacher1-0/+26
metze
2009-03-08socket_wrapper: make it possible to bind to '::'Stefan Metzmacher1-1/+3
metze
2009-03-08Don't copy the winbindd_request in wb_transVolker Lendecke2-31/+3
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 Lendecke2-18/+16
2009-03-08Convert wb_resp_read to tevent_reqVolker Lendecke3-29/+25
2009-03-08Convert wb_req_read to tevent_reqVolker Lendecke2-22/+20
2009-03-08Convert wb_req_write to tevent_reqVolker Lendecke3-32/+33
2009-03-08Add tevent_req wbc helpersVolker Lendecke2-0/+40
2009-03-08Add "queue" to writev_sendVolker Lendecke4-6/+34
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 Vernooij4-9/+8
2009-03-07Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke11-137/+128
2009-03-07Fix a smbclient segfault against security=share serversVolker Lendecke1-3/+10
2009-03-07Fix some nonempty blank linesVolker Lendecke1-22/+22
2009-03-07s4-spoolss: just return OK for dcesrv_spoolss_EnumPrintProcDataTypes for now.Günther Deschner2-2/+1
Guenther
2009-03-07don't rely on shebang's perl path, call our $PERL insteadBjörn Jacke1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-03-07s3-spoolss: remove more leftovers from old enumports call.Günther Deschner3-99/+0
Guenther
2009-03-07s3-rpcclient: add enummonitors command to enumerate print monitors.Günther Deschner1-0/+61
Guenther
2009-03-07s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.Günther Deschner2-0/+58
Guenther
2009-03-07s3-spoolss: remove old spoolss_EnumMonitors.Günther Deschner3-170/+0
Guenther
2009-03-07s3-spoolss: use pidl for _spoolss_EnumMonitors.Günther Deschner3-103/+112
Guenther
2009-03-07s3: re-run make samba3-idl.Günther Deschner3-6/+22
Guenther
2009-03-07spoolss: flag spoolss_MonitorInfo structs [public,gensize].Günther Deschner1-2/+2
Guenther
2009-03-07s3-rpcclient: use rpccli_spoolss_enumports wrapper.Günther Deschner1-29/+21
Guenther
2009-03-07s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.Günther Deschner2-0/+58
Guenther
2009-03-07s3-spoolss: remove old spoolss_EnumPorts.Günther Deschner4-304/+0
Guenther
2009-03-07s3-spoolss: use pidl for _spoolss_EnumPorts.Günther Deschner3-125/+100
Guenther
2009-03-07s3: re-run make samba3-idl.Günther Deschner3-12/+44
Guenther
2009-03-07spoolss: flag spoolss_PortInfo structs as [public,gensize].Günther Deschner1-4/+4
Guenther