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
Günther Deschner
45a22eab52
spoolss: flag spoolss_MonitorInfo structs [public,gensize].
...
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
e9179a6850
s3-rpcclient: use rpccli_spoolss_enumports wrapper.
...
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
c7e19c2627
s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.
...
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
631f277d1c
s3-spoolss: remove old spoolss_EnumPorts.
...
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
03f1bec6ce
s3-spoolss: use pidl for _spoolss_EnumPorts.
...
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
48ba132833
s3: re-run make samba3-idl.
...
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
34f469f19f
spoolss: flag spoolss_PortInfo structs as [public,gensize].
...
Guenther
2009-03-07 00:55:35 +01:00
Günther Deschner
62d73b8854
s3-rpcclient: add enumprocdatatypes command to enumerate print processor data
...
types.
Guenther
2009-03-07 00:55:15 +01:00
Günther Deschner
2d24d3a380
s3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.
...
Guenther
2009-03-07 00:55:00 +01:00
Günther Deschner
f9019c1837
s3-spoolss: remove old spoolss_EnumPrintProcDataTypes.
...
Guenther
2009-03-07 00:49:52 +01:00
Günther Deschner
3cf22a8856
s3-spoolss: use pidl for _spoolss_EnumPrintProcDataTypes.
...
Guenther
2009-03-07 00:49:51 +01:00
Günther Deschner
a58e59fc6e
s3-rpcclient: add enumprocs command to enumerate print processors.
...
Guenther
2009-03-07 00:49:47 +01:00