Andrew Bartlett
7c083caf74
s3-lib make push_ucs2() static
2011-05-03 07:37:07 +02:00
Andrew Bartlett
2742ec0e34
Remove strlower_m() and strupper_m() from source4 and common code.
...
This function is problematic because a string may expand in size when
changed into upper or lower case. This will then push characters off
the end of the string in the s3 implementation, or panic in the former
s4 implementation.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
eea783e04c
lib/util Move set_socket_options() into common code.
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
c1f3ff7340
s3-util: move valid_share_pathname() to lib/util.c
...
Guenther
2011-05-02 15:03:43 +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
bc781bf7d9
s3-proto: remove duplicate prototypes.
...
Guenther
2011-04-29 21:01:05 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +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
9a9124b087
lib/util/charset Move strstr_m() to the top level
2011-04-29 16:38:14 +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
0520da2bbe
s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCH
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0eca33bbf6
s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIR
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
08c90d6f2d
s3-smb Use FILE_ATTRIBUTE_VOLUME intead of aVOLID
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0a3c84b554
s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEM
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
317e19aeb3
s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDEN
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Andrew Bartlett
7f66ebde2e
s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLY
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +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
a8a6433fec
s3: Properly clean up in pthreadpool_init in case of failure
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Apr 27 23:57:19 CEST 2011 on sn-devel-104
2011-04-27 23:57:19 +02:00
Günther Deschner
66b26195d2
s3-waf: add pthreadpool support.
...
Volker, please check.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 27 17:57:32 CEST 2011 on sn-devel-104
2011-04-27 17:57:32 +02:00
Günther Deschner
ee0b0dd3a1
s3-netapi: Fix Coverity CID #2302 : FORWARD_NULL
...
Guenther
2011-04-27 16:51:02 +02:00
Volker Lendecke
dbc36befb5
s3: Allow unlimited parallelism in pthreadpool
2011-04-26 12:41:56 +02:00
Stefan Metzmacher
a3a38ee90a
s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383 )
...
This avoids getting IPv4 addresses as mapped IPv6 addresses
(e.g. ::ffff:192.168.0.1).
Before the bahavior was inconsistent between operating system
and distributions. Some system have IPV6_ONLY as default.
Now we consistently get AF_INET for IPv4 addresses and AF_INET6
for IPv6 addresses.
It also makes it possible to listen only on IPv6 now
as "::" doesn't imply "0.0.0.0" anymore. Which also
avoids confusing log messages that we were not able to
bind to "0.0.0.0".
metze
2011-04-25 17:42:03 +02:00
Stefan Metzmacher
4bfe2d5655
s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug #7383 )
...
metze
2011-04-25 17:41:56 +02:00
Volker Lendecke
f4a0f856f3
s3: pthreadpool_sig_fd->pthreadpool_signal_fd
2011-04-25 09:50:32 +02:00
Volker Lendecke
3c405f5e1d
s3: Tiny doc for pthreadpool
2011-04-25 09:50:32 +02:00
Volker Lendecke
62689d8166
s3: Many pthreadpool fixes
...
In particular, this makes it fork-safe
2011-04-25 09:50:32 +02:00
Stefan Metzmacher
f7bc84409a
s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
...
Most fault codes have a NTSTATUS representation, so use that.
This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
2011-04-24 10:44:53 +02:00
Volker Lendecke
123e5c1a75
s3: Fix Coverity ID 2478, UNINIT
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104
2011-04-23 14:11:22 +02:00
Stefan Metzmacher
5186209277
s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef's
...
We rely on uint64_t for a long time now...
metze
2011-04-23 10:44:16 +02:00
Volker Lendecke
3e8a8fad59
s3: Fix Coverity ID 2307, NULL_RETURNS
2011-04-22 10:06:35 +02:00
Volker Lendecke
7e7ad53cbd
s3: Fix Coverity ID 1340, NULL_RETURNS
2011-04-22 10:06:33 +02:00
Andrew Bartlett
79e6fea774
lib/util/charset create _handle functions for convert_string() et al
...
This is now API compatible with the existing code in lib/util/charset
lazy_initialize_conv() is no longer called as init_iconv() is called
when the smb.conf is processed, and get_conv_handle() will auto-init
with defaults if required.
load_case_tables_library() is no longer requried as all binaries and
libraries already load these in their entry points, as otherwise all
the other string functions would fail.
Andrew Bartlett
2011-04-20 04:31:07 +02:00
Volker Lendecke
0bf7c96464
s3: Use \0 instead of NULL when 0-terminating a string
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
2011-04-17 12:26:15 +02:00
Volker Lendecke
35c71231ac
s3: Remove an unused variable
2011-04-16 15:35:05 +02:00
Günther Deschner
7ece43b15e
s3-build: make sure we pick up system tdb and talloc via #include.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 12:56:28 CEST 2011 on sn-devel-104
2011-04-14 12:56:27 +02:00
Andrew Bartlett
e1078b87de
lib/util Move alpha_strcpy() from s3 into common code
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 14 09:21:59 CEST 2011 on sn-devel-104
2011-04-14 09:21:59 +02:00
Andrew Bartlett
3d7998bce1
s3-lib Remove very unused (#if 0) strncpyn
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 14 06:27:31 CEST 2011 on sn-devel-104
2011-04-14 06:27:31 +02:00
Andrew Bartlett
b1873be59b
s3-lib Remove unused string_append
2011-04-14 12:47:45 +10:00
Andrew Bartlett
72dcf6d47c
s3-lib Move unix_strlower and unix_strupper to their only users.
2011-04-14 12:42:52 +10:00
Andrew Bartlett
aad2c19da7
s3-lib Remove unused str_ascii_charnum()
2011-04-14 12:34:51 +10:00
Andrew Bartlett
9d62ee2a81
s3-lib Move strisnormal to it's only user in mangle_hash.c
2011-04-14 12:31:18 +10:00
Günther Deschner
321587e44a
s3-includes: only include acl prototypes when needed.
...
Guenther
2011-04-14 00:47:57 +02:00
Günther Deschner
9824e2e5ee
s3-rpc_client: add and use rpc_client/rpc_client.h.
...
Guenther
2011-04-13 22:23:59 +02:00
Günther Deschner
d2d976d835
s3-netapi: remove two shadowed variables.
...
Guenther
2011-04-13 22:23:59 +02:00
Günther Deschner
8b8014198c
s3-util_sock: very brief documentation for open_socket_out().
...
The most important bit is to document that timeout is in MILLIseconds, not
seconds.
Guenther
2011-04-13 18:13:34 +02:00
Andrew Bartlett
4158e9a7e5
s3-charcnv: Move convert_string() et al to lib/util/charset
...
This is the first step to this being the common convert_string
implementation.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:08 +10:00