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
Volker Lendecke
01386ff313
s3: Extract the guest_login field in sesssetup
2011-05-29 12:49:34 +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
Jeremy Allison
9dd5704aba
Remove duplicate definition of SMB_VFS_NEXT_STRICT_UNLOCK. Found by herb@samba.org
2011-05-17 19:01:18 +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 Bartlett
7e8f086798
s3-build: Move generated config.h and config.h.in to include/autoconf
...
This ensures that these are not found by the waf build, which causes
issues when the wrong config.h is used by the recursive smbtorture build
Andrew Bartlett
2011-05-09 11:21:09 +02:00
Andrew Bartlett
897ef820a4
s3-lib Use common lib/socket code for get_interfaces() et al
2011-05-08 12:57:04 +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
Andrew Tridgell
8b2ba64d60
libds: moved enum security_types to a common header
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-08 10:56:27 +02:00
Günther Deschner
1e208a7057
s3-includes: no need to globally include libads/ads_status.h.
...
Guenther
2011-05-06 16:37:22 +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
Günther Deschner
d8cfca3a9b
s3: only include tdb headers where needed.
...
Guenther
2011-05-06 10:48:10 +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
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
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
Andrew Bartlett
1475013963
lib/util Move source3 tdb_wrap_open() into the common code.
...
This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in
the top level build, these options are not available for these
databases. However, having two different tdb_wrap lists is a worse
fate, so this will do for now.
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
7d6ebe0de7
More const fixes. Remove CONST_DISCARD.
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
c616379e14
s3-includes: when MADVISE support was reverted back in 2009, someone forgot this hunk.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 3 22:06:20 CEST 2011 on sn-devel-104
2011-05-03 22:06:19 +02:00
Günther Deschner
89e6055606
s3-includes: move enum flush_reason_enum to smb.h
...
Guenther
2011-05-03 21:03:47 +02:00
Günther Deschner
a360945791
s3-includes: remove ipv6 related prototype which is already defined in ../lib/util/util_net.h.
...
Guenther
2011-05-03 21:03:47 +02:00
Günther Deschner
4fa2bac6e7
s3-system: move LOCK_ defines to lib/system.c
...
Guenther
2011-05-03 21:03:47 +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
f08250eb55
s3-ctdb Fix duplicate function name due to packet -> ctdb_packet rename.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-05-03 14:38:29 +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 Tridgell
1d165c0803
s3-include: use new roles.h
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
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
Andrew Bartlett
85fa87ea82
s3-ctdb Rename packet file and files to ctdb_packet
...
This avoids a conflicts with the Samba4 packet.c, as these is only
used in CTDB
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
80fa624861
s3: move pipe_auth_data to dcerpc.h
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
cd5b2b242b
s3-printing: avoid using pipes_struct when only session_info is needed.
...
Guenther
2011-05-02 15:03:43 +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