Volker Lendecke
f0ff6f390a
Use tevent_req_oom
...
This fixes a few Coverity errors
2011-06-20 12:33:24 +02:00
Andrew Bartlett
a1f04e8abc
libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
...
The two error tables need to be combined, but for now seperate the names.
(As the common parts of the tree now use the _common function,
errmap_unix.c must be included in the s3 autoconf build).
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
2011-06-20 08:12:03 +02:00
Andrew Bartlett
018f4a5889
libcli/util Bring samba4 unix -> nt_status code in common.
...
Due to library link orders, this is already the function that is being
used. However we still need to sort out the duplicate symbol issues,
probably by renaming things.
Andrew Bartlett
2011-06-20 14:36:06 +10:00
Andrew Bartlett
a63189e9f0
s3-libcli Remove unused error mapping tables
...
The functions which uesed these tables have since moved in common.
Andrew Bartlett
2011-06-20 14:05:32 +10:00
Andrew Bartlett
acc9535400
s4-errors: Import error maps from the source3/ unix -> ntstatus mapping
...
We need to syncronise these mappings, as the duplication of this
symobol in the build means that either may be called based only on
library link orders.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104
2011-06-17 10:22:07 +02:00
Andrew Bartlett
4162c7b74a
errors: reorder error codes for easier s3/s4 comparison
2011-06-17 17:09:00 +10:00
Andrew Tridgell
e645675aa4
s4-util: removed the s4 nterr.c
...
this is now in common code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-17 17:09:00 +10:00
Andrew Bartlett
1233ba7bf3
libclu/util: Move get_friendly_nt_error_msg() in common.
...
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-17 17:08:59 +10:00
Stefan Metzmacher
8d12649b31
s4:libcli/smb_composite: convert smb2_composite_setpathinfo_send/rev to tevent_req
...
metze
2011-06-15 17:54:44 +02:00
Matthias Dieter Wallnöfer
97af358656
s4:libcli/raw/raw*.c - add unhandled enum values
...
Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Jun 11 18:46:13 CEST 2011 on sn-devel-104
2011-06-11 18:46:13 +02:00
Andrew Tridgell
285293c8b5
s4-ipv6: fixed a crash in the IPv6 DNS code
2011-06-07 15:48:42 +10:00
Andrew Tridgell
64380ff050
s4-ipv6: fixed DNS handling with new IPv6 code
2011-06-07 12:55:37 +10:00
Andrew Bartlett
907cdb5de7
s4-modules Remove lp_ctx from init functions that no longer need it
...
Now that we don't allow the smb.conf to change the modules dir, many
functions that simply load modules or initialise a subsytem that may
load modules no longer need an lp_ctx.
Andrew Bartlett
2011-06-06 17:37:51 +10:00
Andrew Tridgell
d8e2302330
s4-ipv6: allow for IPv6 in resolver top level calls
2011-06-06 12:26:11 +10:00
Andrew Tridgell
d1c90c465e
s4-ipv6: cope with IPv6 in our async DNS client code
2011-06-06 12:26:11 +10:00
Andrew Tridgell
40dc94a53f
s4-ipv6: update callers to load_interface_list()
2011-06-06 12:26:10 +10:00
Rusty Russell
0204ae6229
lib/util/time.c: timeval_current_ofs_usec
...
Several places want "microseconds from current time", and several were
simply handing "usecs" values which could be over a million.
Using a helper to do this is safer and more readable.
I didn't replace any obviously correct callers (ie. constants).
I also renamed wait_nsec in source3/lib/util_sock.c; it's actually
microseconds not nanoseconds (introduced with this code in Volker's
19b783cc Async wrapper for open_socket_out_send/recv).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-01 10:38:47 +02:00
Andrew Bartlett
c004a932c4
libcli/util Remove ntstatus_check_dos_mapping
...
This has been set to true since the global loadparm was removed in
2008, and removes an #ifdef SAMBA_BUILD == 4
Andrew Bartlett
2011-05-31 15:10:20 +10:00
Andrew Bartlett
159fad92d9
s4-libcli Merge error map order with source3 errmap_unix.c
...
This makes it easier to see what the actual differences here are.
Andrew Bartlett
2011-05-31 02:57:19 +02:00
Andrew Bartlett
2fc342c20a
waf-build: Add more libraries to avoid duplicate symbols
...
The new source of duplicates is calling libnetapi from inside smbtorture.
Andrew Bartlett
2011-05-18 16:12:07 +02:00
Günther Deschner
b1948659ad
s4-libcli/rap: add smbcli_rap_netremotetod().
...
Guenther
2011-05-16 11:43:26 +02:00
Luke Howard
c31f95f66d
do an explicit A record search for SRV entries
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-05-13 18:50:23 +02:00
Andrew Bartlett
22cb631b4f
s4-interfaces Rename interfaces code so not to conflict with source3/
...
The iface_count, iface_n_bcast, and load_interfaces functions
conflicted with functions of the same name in source3, so the source4
functions were renamed. Hopefully we can actually wrap one around the
other in future.
Andrew Bartlett
2011-05-08 12:57:04 +02:00
Andrew Bartlett
e3b858496f
libcli/smb Move cifs posix helper functions and headers in common
...
unix_perms_to_wire() was a duplicate symbol in the top level build.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
cad704e836
errors: Remove unused unix_to_werror()
2011-05-06 07:51:24 +02:00
Andrew Bartlett
db74cad1c6
libcli/util Move NTSTATUS table to the top level
2011-05-06 07:51:24 +02:00
Andrew Bartlett
344eb08ee4
nterr: Add mem_ctx for return string from get_nt_error_c_code()
...
It is clearer to avoid the implicit return on talloc_tos()
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
f1ec28827f
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
...
This takes the Samba4 version, with the NT_STATUS_IS_DOS() check.
This will be used in smbd/error.c shortly.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
2b0de5b5ca
errors: Merge source3/ werror_to_ntstatus() code to source4/
2011-05-06 07:51:24 +02:00
Andrew Bartlett
865a937671
errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.
...
They are now identical
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
fa289e8982
s3-lib Remove unused dos error codes from errmap_unix
...
This also makes unix_nt_errmap private to errmap_unix.c and errormap.c
so the tables themselves cannot be duplicate symbols until merged.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Jeremy Allison
4f41be356a
Fix many const compiler warnings.
2011-05-05 10:41:59 -07:00
Andrew Tridgell
39ded87b45
libcli/raw: use a different ifdef than s3 smb.h
...
this allows both headers to be included in 1 C file
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Bartlett
cdd802af83
s4-messaging Rename messaging -> imessaging
...
This avoid symbol and structure conflicts between Samba3 and Samba4,
and chooses a less generic name.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
7261a9b9f7
s4-libcli Remove resolve_name() as it conflicts with Samba3.
...
This was just a wrapper around resolve_name_ex(), so just call that
instead.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Stefan Metzmacher
6dd97ac093
s4:libcli/util/nterr: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILURE
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 2 15:02:56 CEST 2011 on sn-devel-104
2011-05-02 15:02:56 +02:00
Andrew Bartlett
f96793142d
build: put doserr.c into it's own subsystem, so it's no longer a duplicate
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 29 10:00:32 CEST 2011 on sn-devel-104
2011-04-29 10:00:32 +02:00
Andrew Bartlett
6021af4fd3
libcli/smb Move attrib_string in common
2011-04-29 16:38:14 +10:00
Andrew Bartlett
9f75b7cbb3
libcli/smb Move FILE_ATTRIBUTE defines to the top level
2011-04-29 16:38:12 +10:00
Stefan Metzmacher
ffb2dcf11b
s4:libcli/smb_composite: move smb2_composite_setpathinfo_setinfo_done()
...
It should be after smb2_composite_setpathinfo_create_done().
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Apr 28 21:38:53 CEST 2011 on sn-devel-104
2011-04-28 21:38:53 +02:00
Stefan Metzmacher
77bed960d2
s4:libcli/smb_composite: move smb2_composite_setpathinfo_create_done()
...
It should be after smb2_composite_setpathinfo_send().
metze
2011-04-28 20:36:08 +02:00
Stefan Metzmacher
9306b8b3c6
s4:libcli/smb_composite: add smb2_composite_setpathinfo_close_done()
...
metze
2011-04-28 20:36:06 +02:00
Stefan Metzmacher
59651175fc
s4:libcli/smb_composite: better names for smb2_composite_setpathinfo_* funcs and vars
...
metze
2011-04-28 20:36:05 +02:00
Stefan Metzmacher
01cb5984ac
s4:libcli/smb2: let smb2_session_setup_spnego_* use tevent_req
...
metze
2011-04-28 20:36:03 +02:00
Stefan Metzmacher
6cb7d764d3
s4:libcli/smb2: move smb2_session_setup_spnego_send() to the top
...
smb2_session_setup_spnego_send() should be on the top of
the smb2_session_setup_spnego_* block.
metze
2011-04-28 20:36:01 +02:00
Stefan Metzmacher
8116b19a28
s4:libcli/smb2: move smb2_connect_tcon_done()
...
It should be after smb2_connect_session_done().
metze
2011-04-28 20:35:59 +02:00
Stefan Metzmacher
eb0eb971ca
s4:libcli/smb2: move smb2_connect_session_done()
...
It should be after smb2_connect_negprot_done().
metze
2011-04-28 20:35:57 +02:00
Stefan Metzmacher
ad65cf5b6a
s4:libcli/smb2: move smb2_connect_negprot_done()
...
It should be after smb2_connect_socket_done().
metze
2011-04-28 20:35:56 +02:00
Stefan Metzmacher
1b4a167354
s4:libcli/smb2: move smb2_connect_socket_done()
...
It should be after smb2_connect_resolve_done().
metze
2011-04-28 20:35:54 +02:00
Stefan Metzmacher
87d2537b48
s4:libcli/smb2: move smb2_connect_resolve_done()
...
It should be after smb2_connect_send().
metze
2011-04-28 20:35:52 +02:00