Andrew Bartlett
f52b97a129
s3-param Make charset parameters const
...
This removes the dangerous ability for these parameters to change
based on % substitutions.
Andrew Bartlett
2011-06-01 04:19:05 +02:00
Andrew Bartlett
ec9ff19e60
s3-param Make lp_passwordserver() const.
...
This means that it no longer takes % substituations, and so the documentation for this behaviour is removed from the smb.conf manpage. (This mode is only useful in security=server, which is already marked as deprecated in 3.6).
Andrew Bartlett
2011-06-01 04:19:05 +02:00
Jeremy Allison
1cee71713f
Change sys_getcd() to take no arguments and always return malloc'ed memory (or NULL).
...
Part of the efforts to remove PATH_MAX on modern systems.
2011-06-01 02:54:51 +02:00
Andrew Bartlett
52399f3177
lib/util Move sys_memalign into lib/util/system.c
2011-05-31 02:57:19 +02:00
Andrew Bartlett
a5a2373979
s3-lib Move sstring_sub() to it's only user and make static
...
This should not be used more generally, as it is specifically not for
multibyte strings, and uses malloc rather than talloc.
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Andrew Bartlett
8d639feed9
s3-param Move init_iconv() to loadparm.c
...
This assists with some dependency loops
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Andrew Bartlett
381423b1bd
libcli/security: move secdesc.c to the top level libcli/security
...
This code does not rely on lp_ or other source3 only functions, so can
be part of the common library.
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Andrew Bartlett
e5dd03d199
s3-globals Remove smbd_event_context() (use server_event_context())
...
This has been a wrapper around server_event_context() for some time
now, and removing this from dummmysmbd.c assists with library
dependencies.
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Andrew Bartlett
8524924a46
s3-smbd provide struct smbd_server_connection * to conn_snum_used
...
This provides the 'sconn' parameter to this key functions, that
is currently duplicated in dummysmbd.c, which causes duplicate symbol
issues in the waf build.
This has natrually caused a number of consequential changes across the
codebase, includning not passing a messaging context into initial
reload_services():
This causes problems because the global smbd_server_connection isn't
yet set up, as there isn't a connection here, just the initial
process.
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Andrew Bartlett
da662b82b8
s3-lib Replace StrnCaseCmp() with strncasecmp_m()
...
strncasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Andrew Bartlett
c615ebed6e
s3-lib Replace StrCaseCmp() with strcasecmp_m()
...
strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Andrew Bartlett
7a11e5de39
s3-param: Remove unused snum2params_static
2011-05-18 16:12:08 +02:00
Andrew Bartlett
b3258addb4
s3-param: remove unused share_iterator functions
2011-05-18 16:12:08 +02:00
Günther Deschner
854467851d
s3-printing: Get the location info from cups.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-05-16 12:54:33 +02:00
Andrew Tridgell
45e26fdeec
s3-smbd: expose smbd_set_server_fd()
...
this allows the fd to be setup by subsystems that want to use the s3
server core code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May 8 12:01:13 CEST 2011 on sn-devel-104
2011-05-08 12:01:13 +02:00
Günther Deschner
675573d54b
s3-includes: finally only include client.h when libsmb is used.
...
Guenther
2011-05-06 16:37:22 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Günther Deschner
41134f7f4b
s3-proto: remove some duplicate prototypes.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 6 16:21:08 CEST 2011 on sn-devel-104
2011-05-06 16:21:08 +02:00
Andrew Bartlett
8f1810362d
lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()
...
gen_fnmatch was a duplicate symbol in the top level build.
gen_fnmatch() used for simple non-CIFS pattern matching, so selecting
the lib/util implementation should not be a concern.
Andrew Bartlett
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
Jeremy Allison
a5a84415e2
Fix broken interface to set_namearray() - don't modify incoming string.
2011-05-06 01:44:07 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +02:00
Jeremy Allison
4f41be356a
Fix many const compiler warnings.
2011-05-05 10:41:59 -07:00
Jeremy Allison
ff215f5c89
I added them, so I get to kill them :-). Finally remove all uses of safe_strcpy and safe_strcat. Change to strlcpy, strlcat.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 4 22:14:14 CEST 2011 on sn-devel-104
2011-05-04 22:14:14 +02:00
Günther Deschner
b8eaec6b66
s3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May 4 12:31:10 CEST 2011 on sn-devel-104
2011-05-04 12:31:09 +02:00
Günther Deschner
9c48345e32
s3-proto: move remaining krb5 protos to krb5_protos.h
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 3 15:38:40 CEST 2011 on sn-devel-104
2011-05-03 15:38:40 +02:00
Andrew Bartlett
80f1d49b61
lib/util/charset Use push_string and talloc_strupper/strlower from common code
...
The only caller of push_string() (not to be confused with
push_string_check()) in the common code was encode_pw_buffer(), and it
didn't use the alignment or STR_UPPER flags.
The talloc_strupper() and talloc_strlower() functions are tested in
smbtorture, and are next_codepoint() based.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
7c083caf74
s3-lib make push_ucs2() static
2011-05-03 07:37:07 +02:00
Andrew Bartlett
fbea52f74a
lib/util Move more network utility functions from source3 into lib/util
...
This will help with the merge of the interfaces layer.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Günther Deschner
56cd3b3bbb
s3-rpc_server: (re)move last globally included rpc_server prototypes.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 2 16:05:31 CEST 2011 on sn-devel-104
2011-05-02 16:05:31 +02:00
Günther Deschner
daa02f34b1
s3-proto: move remaining srvsvc protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c233c21425
s3-proto: move remaining spoolss protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
047d8c073b
s3-proto: move more rpc_server prototypes out of proto.h
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c6fe379a46
s3-rpc_server: remove proto of nonexisting function
...
(rpc_pipe_register_commands).
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c1f3ff7340
s3-util: move valid_share_pathname() to lib/util.c
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
49d5f62b42
s3-proto: move rpc_srv_register protos and structs to town headerfile.
...
Guenther
2011-05-02 15:03:43 +02:00
Volker Lendecke
d87427973c
s3: Make name_resolve_bcast return sockaddr_storage
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
2011-04-30 20:40:46 +02:00
Volker Lendecke
020b691cf8
s3: Remove ip_sevice from get_ipc_connect_master_ip
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
2011-04-30 18:16:28 +02:00
Andrew Bartlett
1018dd1826
s3-lib: Rely on uint64_t in conv_str_size()
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Apr 30 05:58:35 CEST 2011 on sn-devel-104
2011-04-30 05:58:35 +02:00
Günther Deschner
bbacaec4e9
s3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 22:05:07 CEST 2011 on sn-devel-104
2011-04-29 22:05:07 +02:00
Günther Deschner
bc781bf7d9
s3-proto: remove duplicate prototypes.
...
Guenther
2011-04-29 21:01:05 +02:00
Günther Deschner
c7d38f49c8
s3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
faf1175125
s3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
d6289641f5
s3-proto: remove remaining nss_info prototypes to nss_info.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
12476223c6
s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.
...
Guenther
2011-04-29 12:19:04 +02:00
Andrew Bartlett
93ace5cc24
lib/util Re-merge the string_sub() and all_string_sub() from source3
...
Andrew Bartlett
2011-04-29 16:38:15 +10:00
Andrew Bartlett
6021af4fd3
libcli/smb Move attrib_string in common
2011-04-29 16:38:14 +10:00
Andrew Bartlett
724915f721
s3-client Add TALLOC_CTX argument to attrib_string().
...
This ensures the caller knows where the memory was allocated.
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
0df4061cff
lib/util/charset Merge talloc-based pull and push charset functions
...
These were copied from source3/lib/charcnv.c
Andrew Bartlett
2011-04-28 05:30:20 +02:00
Volker Lendecke
ca9ac7c4c7
s3: Remove cli_write
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00