summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2011-04-29libcli/smb Move attrib_string in commonAndrew Bartlett1-20/+0
2011-04-29s3-client Add TALLOC_CTX argument to attrib_string().Andrew Bartlett1-2/+2
This ensures the caller knows where the memory was allocated. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_VOLUME intead of aVOLIDAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-29s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett1-1/+1
This means we use just one constant for this file attribute. Andrew Bartlett
2011-04-28lib/util/charset Merge talloc-based pull and push charset functionsAndrew Bartlett1-115/+0
These were copied from source3/lib/charcnv.c Andrew Bartlett
2011-04-27s3: Properly clean up in pthreadpool_init in case of failureVolker Lendecke1-0/+6
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 27 23:57:19 CEST 2011 on sn-devel-104
2011-04-27s3-waf: add pthreadpool support.Günther Deschner1-0/+11
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-27s3-netapi: Fix Coverity CID #2302: FORWARD_NULLGünther Deschner1-1/+1
Guenther
2011-04-26s3: Allow unlimited parallelism in pthreadpoolVolker Lendecke2-9/+31
2011-04-25s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)Stefan Metzmacher1-0/+26
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-25s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug ↵Stefan Metzmacher1-14/+17
#7383) metze
2011-04-25s3: pthreadpool_sig_fd->pthreadpool_signal_fdVolker Lendecke4-7/+7
2011-04-25s3: Tiny doc for pthreadpoolVolker Lendecke1-7/+59
2011-04-25s3: Many pthreadpool fixesVolker Lendecke5-87/+587
In particular, this makes it fork-safe
2011-04-24s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()Stefan Metzmacher1-1/+1
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-23s3: Fix Coverity ID 2478, UNINITVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104
2011-04-23s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher1-24/+0
We rely on uint64_t for a long time now... metze
2011-04-22s3: Fix Coverity ID 2307, NULL_RETURNSVolker Lendecke1-0/+4
2011-04-22s3: Fix Coverity ID 1340, NULL_RETURNSVolker Lendecke1-0/+4
2011-04-20lib/util/charset create _handle functions for convert_string() et alAndrew Bartlett1-12/+0
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-17s3: Use \0 instead of NULL when 0-terminating a stringVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
2011-04-16s3: Remove an unused variableVolker Lendecke1-3/+0
2011-04-14s3-build: make sure we pick up system tdb and talloc via #include.Günther Deschner1-1/+1
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-14lib/util Move alpha_strcpy() from s3 into common codeAndrew Bartlett1-50/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 09:21:59 CEST 2011 on sn-devel-104
2011-04-14s3-lib Remove very unused (#if 0) strncpynAndrew Bartlett1-25/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 06:27:31 CEST 2011 on sn-devel-104
2011-04-14s3-lib Remove unused string_appendAndrew Bartlett1-22/+0
2011-04-14s3-lib Move unix_strlower and unix_strupper to their only users.Andrew Bartlett2-41/+41
2011-04-14s3-lib Remove unused str_ascii_charnum()Andrew Bartlett1-18/+0
2011-04-14s3-lib Move strisnormal to it's only user in mangle_hash.cAndrew Bartlett1-13/+0
2011-04-14s3-includes: only include acl prototypes when needed.Günther Deschner1-0/+20
Guenther
2011-04-13s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner3-0/+3
Guenther
2011-04-13s3-netapi: remove two shadowed variables.Günther Deschner1-2/+0
Guenther
2011-04-13s3-util_sock: very brief documentation for open_socket_out().Günther Deschner1-0/+10
The most important bit is to document that timeout is in MILLIseconds, not seconds. Guenther
2011-04-13s3-charcnv: Move convert_string() et al to lib/util/charsetAndrew Bartlett1-445/+1
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-13lib/util: Make string_replace from s3 commonAndrew Bartlett1-43/+0
The s4 implementation didn't do multibyte strings, so was only good for '/' which is known to be safe in all multibyte charsets. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13lib/util ucs2_align is identical, put it in commonAndrew Bartlett1-7/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13lib/util Move simple string routines into common code.Andrew Bartlett1-49/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13lib/util/charset Move source3/lib/util_unistr.c to the common code.Andrew Bartlett2-364/+39
This file (largely) contains functions to deal with UTF16 strings. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Move strdup_w to it's only user in mangle_hash.cAndrew Bartlett1-18/+0
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett3-51/+0
This means that there is no need for the 'valid.dat' table to be loaded by anything other than smbd, so the unloader is also removed. The concept of a 'valid dos character' has been replaced by the hash2 mangle method. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib make static and remove more _w functionsAndrew Bartlett1-14/+2
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Remove unused #defineAndrew Bartlett1-4/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Remove unused skip_unibuf()Andrew Bartlett1-20/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib: Remove unused _w functions.Andrew Bartlett1-213/+1
In general we don't manipulate UTF16 strings internally, particularly as they are also multibyte, so are no easier to work with than UTF8. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Correct comment in strlen_w()Andrew Bartlett1-1/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13s3-lib Remove more unused fstring.c functionsAndrew Bartlett1-46/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>