1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

52151 Commits

Author SHA1 Message Date
Jelmer Vernooij
0c72c503fa Fix fallback if system doesn't provide talloc. 2009-03-14 21:06:41 +01:00
Jelmer Vernooij
61447dfbbf Allow using external libtalloc. 2009-03-14 20:56:26 +01:00
Brad Hards
66a26a0ac2 Update instructions for checking out pidl. 2009-03-10 17:11:39 +01:00
Volker Lendecke
8c41e0e5a6 Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
I think we eventually need to pass down the debuglevel here.
2009-03-10 17:07:38 +01:00
Stefan Metzmacher
825949b810 tevent: add tevent_req_callback_data_void() macro
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.

metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
09d1b2324c tevent: add tevent_req_received() function
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.

metze
2009-03-10 16:44:44 +01:00
Simo Sorce
97cccb2219 Fix extended operation return path.
Extended operations return was not going thorugh the same patch as others
leaving the ctx around. Plus we were neutralizing the spy too early so that it
didn't set the request_terminated flag as it should have.

This should hopefully fix the failures in the build farm.
2009-03-10 11:08:53 -04:00
Stefan Metzmacher
9579a6f193 s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
2009-03-10 14:07:56 +01:00
Stefan Metzmacher
c2993f74af s3:libsmb: only treat a return 0 as end of file
metze
2009-03-10 12:46:16 +01:00
Stefan Metzmacher
7fc8086e11 s3:libsmb: fix a lot of cli_push() bugs
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-10 11:03:15 +01:00
Stefan Metzmacher
143b222546 socket_wrapper: wrap readv() and writev()
metze
2009-03-10 08:15:48 +01:00
Andrew Tridgell
6f1f9f6d8d fixed a bug in message handling for code the change notify code
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-10 16:45:45 +11:00
Andrew Tridgell
a67bc41d6b added a test that triggers a bug in the Samba3 notify code
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-10 15:12:48 +11:00
Simo Sorce
f088353d37 Fix potential segfaults using freed memory.
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-09 20:12:11 -04:00
Jelmer Vernooij
218ce0e805 Fix prototype mismatch. 2009-03-09 21:49:44 +01:00
Jelmer Vernooij
3b181564c5 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-03-09 21:42:13 +01:00
Björn Jacke
0d2de5380d use LIB_PATH_VAR in selftest.sh if we have it
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-09 18:31:11 +01:00
Karolin Seeger
c666aef471 s3/packaging: Fix typo in comment.
Karolin
2009-03-09 16:16:55 +01:00
Karolin Seeger
a60aaf214c s3/packaging: Package new files properly.
That is part of the fix for bug #6144.
Thanks to Diego Remolina dijuremo [at] gatech [dot] edu for reporting!

Karolin
2009-03-09 16:16:55 +01:00
Volker Lendecke
6b1170c9d6 Fix a typo 2009-03-09 16:13:31 +01:00
Stefan Metzmacher
1410490fe7 s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.

This fixes the build on sles8.

metze
2009-03-09 12:49:13 +01:00
Björn Jacke
c3691b839c fix "dubious escape" warning of Studio compiler 2009-03-09 10:47:30 +01:00
Stefan Metzmacher
5ff4cb580f socket_wrapper: try to make ipv6 support more portable
The internal structure of in6_addr isn't always the same.

metze
2009-03-09 10:21:30 +01:00
Stefan Metzmacher
3679e82434 socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest is ipv4
We only do this if the socket isn't explicit bound yet.

metze
2009-03-08 17:22:26 +01:00
Stefan Metzmacher
f9156f6c77 socket_wrapper: correctly handle connected dgram sockets
metze
2009-03-08 17:22:25 +01:00
Stefan Metzmacher
81e2633e41 socket_wrapper: make it possible to bind to '::'
metze
2009-03-08 15:18:05 +01:00
Volker Lendecke
dea9621680 Don't copy the winbindd_request in wb_trans 2009-03-08 12:52:58 +01:00
Volker Lendecke
e503148225 Convert wb_open_pipe to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
33db1e07a7 Convert wb_connect to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
549c30e9fe Convert wb_int_trans to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
eb177592b5 Add parameter "queue" to wb_int_trans_send 2009-03-08 12:52:58 +01:00
Volker Lendecke
c7df046339 Move "struct req_read_state" where it belongs 2009-03-08 11:21:00 +01:00
Volker Lendecke
1611e63ae5 Convert wb_resp_write to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
80fcd76421 Convert wb_resp_read to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
0a3a7d53eb Convert wb_req_read to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
9a64d7cfbe Convert wb_req_write to tevent_req 2009-03-08 11:20:59 +01:00
Volker Lendecke
f5ee31602c Add tevent_req wbc helpers 2009-03-08 11:20:59 +01:00
Volker Lendecke
fe486d7b9f Add "queue" to writev_send
Unless higher levels queue themselves somehow, writev will *always* be queued.
So the queueing should be done at the right level.
2009-03-08 11:20:59 +01:00
Jelmer Vernooij
f992416e23 Revert accidental reintroduction of void ** bug. 2009-03-08 06:57:52 +01:00
Volker Lendecke
46bcb10b5a Shape up pdb_search a bit by making it a talloc ctx with a destructor 2009-03-07 17:51:21 +01:00
Volker Lendecke
e58ade4136 Fix a smbclient segfault against security=share servers 2009-03-07 15:27:13 +01:00
Volker Lendecke
c29826a697 Fix some nonempty blank lines 2009-03-07 15:27:02 +01:00
Günther Deschner
ca9d67bf18 s4-spoolss: just return OK for dcesrv_spoolss_EnumPrintProcDataTypes for now.
Guenther
2009-03-07 09:59:12 +01:00
Björn Jacke
be479b6adf don't rely on shebang's perl path, call our $PERL instead
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-03-07 08:18:46 +01:00
Günther Deschner
c9496ba18a s3-spoolss: remove more leftovers from old enumports call.
Guenther
2009-03-07 01:12:18 +01:00
Günther Deschner
d75d350287 s3-rpcclient: add enummonitors command to enumerate print monitors.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
33a441b0c2 s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
d8a05bd55d s3-spoolss: remove old spoolss_EnumMonitors.
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
2561b2d2e2 s3-spoolss: use pidl for _spoolss_EnumMonitors.
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
a3e5cf3ba6 s3: re-run make samba3-idl.
Guenther
2009-03-07 00:55:38 +01:00