Alexander Bokovoy [Tue, 10 Apr 2012 09:09:20 +0000 (12:09 +0300)]
s4-libnet: split export_keytab in a separate python module to avoid pulling in HDB dependency
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Apr 12 15:23:19 CEST 2012 on sn-devel-104
Alexander Bokovoy [Tue, 3 Apr 2012 08:22:15 +0000 (11:22 +0300)]
WAF: Add support for stopping processing before end of wscript{_*}
WAF scripts are written in Python and Python has no simple way
to stop program execution other than using exceptions.
This change adds WscriptCheckSkipped exception and its handling in
core WAF code. When any of wscript{_*} throws WscriptCheckSkipped
exception, WAF simply continues to process next wscript in queue
rather than breaking build.
WscriptCheckSkipped exception can be used to perform early bail out
of configuration/build target checks if certain dependency is not available
when the default checks are way more numerous than a check for this
particular dependency. This is to avoid 'if ...' indenting for large
blocks of existing code which also muddens git history for nothing.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 3 Apr 2012 03:41:32 +0000 (23:41 -0400)]
clikrb5: Move pure krb wrapper functions from libads to clikrb5.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 2 Apr 2012 14:20:24 +0000 (10:20 -0400)]
gse: Remove unnecessary header.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sun, 1 Apr 2012 23:08:15 +0000 (19:08 -0400)]
srv_keytab: Pass krb5_context directly, it's all we use anyways.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sun, 1 Apr 2012 21:28:19 +0000 (17:28 -0400)]
krb5_wrap: krb5_string_to_key / krb5_encrypt_block are deprecated.
Remove checks and replace with krb5_c_string_to_key().
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sun, 1 Apr 2012 02:09:22 +0000 (22:09 -0400)]
auth-krb: Move pac related util functions in a single place.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sun, 1 Apr 2012 01:48:06 +0000 (21:48 -0400)]
auth-krb: Make functions static.
The remaining gssapi_parse functions were used exclusively in
gensec_krb5. Move them there and make them static.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 2 Apr 2012 02:48:21 +0000 (22:48 -0400)]
auth-krb: Use simpler method to extract keytype.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sun, 1 Apr 2012 01:37:56 +0000 (21:37 -0400)]
auth-krb: Nove oid packet check to gensec_util.
This is clearly a utiliy function generic to gensec. Also the 3 callers
had identical implementations. Provide a generic implementation for all
of them and avoid duplicating the code everywhere.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sat, 31 Mar 2012 09:19:59 +0000 (05:19 -0400)]
s4-auth-krb: Remove dependency on credentials too.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sat, 31 Mar 2012 07:23:19 +0000 (03:23 -0400)]
s4-auth-krb: Remove unneded dependency on kerberos_util.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sat, 31 Mar 2012 05:27:02 +0000 (01:27 -0400)]
s4-auth-krb: Simplify salt_princ handling.
This allows us to make parse_principal static in kerbeors_util again and
avoid a silly game where we alloc containers and set destrcutors only to
release the whole thing at the end of the function.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sat, 31 Mar 2012 05:15:36 +0000 (01:15 -0400)]
s4-auth-krb: Move function to db-glue.c and make it static.
kerberos_enctype_to_bitmap is not used anywhere else, so just move it there and
make it static, one less dependency to worry about.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 23:33:53 +0000 (19:33 -0400)]
s4-auth-krb: Move keytab functions in a separate file.
Confine ldb dependency.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 22:33:41 +0000 (18:33 -0400)]
s4-auth-krb: Streamline and cleanup code to make it readable.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 22:32:07 +0000 (18:32 -0400)]
s4-auth-krb: streamline and rename enctype functions
better express what is being done in the function name.
Simo Sorce [Fri, 30 Mar 2012 22:29:26 +0000 (18:29 -0400)]
s4-auth-krb: Make kerberos_enctype_bitmap_to_enctype static.
It's a helper function not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 21:32:12 +0000 (17:32 -0400)]
s4-auth-krb: Make kerberos_enctype_bitmap_to_enctypes static.
It is not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 21:17:07 +0000 (17:17 -0400)]
s4-auth-krb: Move function into more appropriate header.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 21:11:02 +0000 (17:11 -0400)]
s4-auth-krb: Make cli_credentials_invalidate_client_gss_creds static.
It's not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 20:51:58 +0000 (16:51 -0400)]
s4-auth-krb: Make impersonate_principal_from_credentials static.
It's not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 30 Mar 2012 19:48:54 +0000 (15:48 -0400)]
gensec_gssapi: keep private header file close to the actual code
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Sat, 31 Mar 2012 04:11:02 +0000 (00:11 -0400)]
krb5_wrap: remove duplicate declaration and dead ifdef
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Fri, 30 Mar 2012 13:25:59 +0000 (15:25 +0200)]
s4-ldb: use KRB5_KEY macros to access key elements.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Fri, 30 Mar 2012 13:19:14 +0000 (15:19 +0200)]
wafsamba: point out that local heimdal paths are not included when
USING_SYSTEM_KRB5 gets set.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Fri, 30 Mar 2012 13:18:16 +0000 (15:18 +0200)]
waf: when USING_SYSTEM_KRB5 environment variable is set, dont configure local
heimdal.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Fri, 30 Mar 2012 13:16:43 +0000 (15:16 +0200)]
waf: when building with system krb5, we do not need to build local heimdal.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Tue, 27 Mar 2012 15:07:02 +0000 (17:07 +0200)]
s3-waf: remove requirement of having --enable-developer for running system krb5 checks.
When you know about "with_mit_krb5_checks" you are most likely a developer
already.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Jeremy Allison [Thu, 12 Apr 2012 00:50:54 +0000 (17:50 -0700)]
Remove overly complex attemt to define blkcnt_t and blksize_t. AC_CHECK_TYPE should just do it.
Still trying to fix the buildfarm.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 12 04:28:29 CEST 2012 on sn-devel-104
Jeremy Allison [Thu, 12 Apr 2012 00:10:27 +0000 (17:10 -0700)]
Try and fix autoconf on the build farm. Always include sys/types.h when working out sizeof(blkcnt_t).
Christian Ambach [Fri, 30 Mar 2012 14:11:08 +0000 (16:11 +0200)]
s3:smbd only care about missing level2 support if kernel oplocks are enabled
if kernel oplocks are not enabled for that share, we can grant level2 oplocks
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 22:45:21 CEST 2012 on sn-devel-104
Christian Ambach [Fri, 30 Mar 2012 14:00:15 +0000 (16:00 +0200)]
s3:smbd only initialize kernel oplocks if they are enabled for a share
Signed-off-by: Jeremy Allison <jra@samba.org>
Christian Ambach [Fri, 30 Mar 2012 13:51:25 +0000 (15:51 +0200)]
s3:smbd add seperate function to initialize kernel oplocks
Signed-off-by: Jeremy Allison <jra@samba.org>
Christian Ambach [Fri, 30 Mar 2012 14:11:37 +0000 (16:11 +0200)]
docs: update kernel oplocks documentation
Signed-off-by: Jeremy Allison <jra@samba.org>
Christian Ambach [Fri, 30 Mar 2012 13:31:19 +0000 (15:31 +0200)]
s3:param convert kernel oplocks to share parameter
Signed-off-by: Jeremy Allison <jra@samba.org>
Andrew Bartlett [Wed, 11 Apr 2012 05:16:05 +0000 (15:16 +1000)]
build: Fix spelling of tevent
Found by metze.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 17:36:19 CEST 2012 on sn-devel-104
Andrew Bartlett [Wed, 11 Apr 2012 08:40:27 +0000 (18:40 +1000)]
build: use include paths for pkg-config found libraries
Andrew Bartlett [Wed, 11 Apr 2012 12:18:34 +0000 (22:18 +1000)]
lib/tdb_compat: Do not define BUILD_TDB2 if we are not building tdb2
The simple fact that this was defined at all, even to false, caused some
of the tdb2 build code to run.
Andrew Bartlett
Andreas Schneider [Wed, 11 Apr 2012 12:15:54 +0000 (14:15 +0200)]
s4-smb2: Fix a talloc crash bug.
The talloc context needs to be initialzed or NULL. So move
talloc_steal() to the position where req is initialized.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Apr 11 15:59:39 CEST 2012 on sn-devel-104
Jeremy Allison [Wed, 11 Apr 2012 03:47:14 +0000 (20:47 -0700)]
Simplify the logic around doing an immediate event reschedule.
We don't need to do a talloc here, we already have a long-lived
pointer we can pass in as the private data.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 08:05:47 CEST 2012 on sn-devel-104
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 20:24:16 +0000 (22:24 +0200)]
s4:dsdb/samdb/ldb_modules/schema.c - move "get_last_structural_class()" into "util.c"
And remove this helper module - it does not have much sense keeping it.
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 06:31:51 CEST 2012 on sn-devel-104
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 19:58:04 +0000 (21:58 +0200)]
s4:dsdb/samdb/ldb_modules/schema.c - inline "get_oc_guid_from_message()" to its only user
Reduce the number of not to be shared functions in "schema.c". Change it
to make use of "get_last_structural_class()".
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 16:55:40 +0000 (18:55 +0200)]
s4:dsdb - introduce a only constant-time "get_last_structural_class()" call
With the redesign of the previous patches this has become possible.
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 10:29:58 +0000 (12:29 +0200)]
s4:dsdb/samdb/ldb_modules/schema.c - inline "acl_check_access_on_class" to its only user
Reduce the number of not to be shared functions in "schema.c".
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 16:40:00 +0000 (18:40 +0200)]
s4:dsdb - move "objectclass_sort()" out from the objectclass LDB module into the schema code
This allows it to be useful for the dbchecker utility in respect to
object class problems.
Fix up the API to only work with standardised LDB "ldb_message_element"
structures which do allow much easier interoperations. As a consequence this
leads to some changes in the objectclass module as well.
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 18:27:30 +0000 (20:27 +0200)]
s4:acl LDB module - remove set but unused variables
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 16:48:23 +0000 (18:48 +0200)]
s4:objectclass LDB module - remove unneeded build dependencies
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 14:05:50 +0000 (16:05 +0200)]
LDB:ldb_msg.c - add another OOM check in "ldb_msg_copy()"
Matthias Dieter Wallnöfer [Thu, 5 Apr 2012 19:55:07 +0000 (21:55 +0200)]
s4:schema/schema_query.c - fix a comment
Matthias Dieter Wallnöfer [Thu, 5 Apr 2012 19:38:14 +0000 (21:38 +0200)]
s4:schema/schema_init.c - better use "ldb_attr_cmp" instead of "strcasecmp"
LDB convention
Matthias Dieter Wallnöfer [Wed, 4 Apr 2012 10:14:12 +0000 (12:14 +0200)]
s4:dsdb/pydsdb.c - fix indentation
Andrew Bartlett [Tue, 10 Apr 2012 21:33:26 +0000 (07:33 +1000)]
on our way with Samba 4.0alpha20
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 04:04:18 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 10 Apr 2012 21:32:43 +0000 (07:32 +1000)]
prepare WHATSNEW for Samba 4.0alpha19 release and mark as release.
Andrew Bartlett [Tue, 10 Apr 2012 22:27:14 +0000 (08:27 +1000)]
ccan: Fix failtest on Fedora 16 as stdlib.h does not imply malloc.h
The issue is that there are two different sources of the malloc
prototype, and they both need to be included otherwise the failtest
overrides chokes on the headers.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Apr 2012 22:01:47 +0000 (08:01 +1000)]
remove --enable-developer from samba4-libs autobuild
This will ensure everything works for end users without --enable-developer.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Apr 2012 21:59:01 +0000 (07:59 +1000)]
remove --enable-developer from recursive waf build in autoconf build
wanting to run make test does not make you a developer in need of ABI checking.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Apr 2012 22:08:44 +0000 (08:08 +1000)]
buildtools: Add --enable-debug option
Andrew Bartlett [Tue, 10 Apr 2012 21:56:00 +0000 (07:56 +1000)]
.gitignore: ignore MYMETA.yml
Andrew Bartlett [Tue, 10 Apr 2012 23:36:12 +0000 (09:36 +1000)]
build: search for talloc, tdb, tevent in non-standard system locations
This is needed because the s3 includes.h directly mentions these
headers, but not every part of s3 depends on these directly.
Andrew Bartlett
Andrew Bartlett [Tue, 10 Apr 2012 23:09:56 +0000 (09:09 +1000)]
build: Add tevent deps for users of tevent calls
This isn't strictly required - this isn't a build break at the moment,
but is a good practice to directly depend on the major libraries we
use, and helps us to have more fine-grained rather than global
dependencies.
Andrew Bartlett
Jeremy Allison [Tue, 10 Apr 2012 22:45:55 +0000 (15:45 -0700)]
Add a new module, aio_linux which implements Linux kernel aio support. Docs to follow.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 02:29:04 CEST 2012 on sn-devel-104
Stefan Metzmacher [Thu, 15 Mar 2012 16:03:05 +0000 (17:03 +0100)]
pidl/NDR/Parser: also do range checks on the array size
metze
Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Tue Apr 10 18:21:59 CEST 2012 on sn-devel-104
Stefan Metzmacher [Thu, 15 Mar 2012 12:14:48 +0000 (13:14 +0100)]
pidl/NDR/Parser: do array range validation in ParseArrayPullGetLength()
metze
Stefan Metzmacher [Thu, 15 Mar 2012 12:13:20 +0000 (13:13 +0100)]
pidl/NDR/Parser: use helper variables for array size and length
metze
Stefan Metzmacher [Thu, 15 Mar 2012 14:07:08 +0000 (15:07 +0100)]
pidl/NDR/Parser: remember if we already know the array length
metze
Stefan Metzmacher [Thu, 15 Mar 2012 12:07:47 +0000 (13:07 +0100)]
pidl/NDR/Parser: use ParseArrayPullGetLength() to get the number of array elements (bug #8815 / CVE-2012-1182)
An anonymous researcher and Brian Gorenc (HP DVLabs) working
with HP's Zero Day Initiative program have found this and notified us.
metze
Stefan Metzmacher [Thu, 15 Mar 2012 12:05:39 +0000 (13:05 +0100)]
pidl/NDR/Parser: split off ParseArrayPullGetSize() and ParseArrayPullGetLength()
metze
Stefan Metzmacher [Thu, 15 Mar 2012 12:12:04 +0000 (13:12 +0100)]
pidl/NDR/Parser: simplify logic in DeclareArrayVariables*()
metze
Stefan Metzmacher [Thu, 15 Mar 2012 12:09:51 +0000 (13:09 +0100)]
pidl/NDR/Parser: declare all union helper variables in ParseUnionPull()
metze
Volker Lendecke [Sat, 7 Apr 2012 12:17:25 +0000 (14:17 +0200)]
s3: Use talloc_get_size instead of strlen
We've just talloc_asprintf'ed the fullpath, so talloc_get_size knows the
strlen.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr 10 13:20:22 CEST 2012 on sn-devel-104
Andrew Bartlett [Wed, 4 Apr 2012 05:17:32 +0000 (15:17 +1000)]
ldb-tools: Place the whole of an ldif file in a transaction
This ensures that when operating ldbadd and ldbmodify against local
ldb files, either an ldif file succeeds or fails as a whole.
Also tests to verify that this is working correctly, and an ABI bump
due to the extra (private, but exported to ldb* tools) symbol and
behaviour change.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 10 11:14:43 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 10 Apr 2012 07:29:11 +0000 (17:29 +1000)]
ldb: Allow access to the line number while reading ldif from a file
Andrew Bartlett [Wed, 4 Apr 2012 08:52:25 +0000 (18:52 +1000)]
ldb: Detect failures in ldb.base again
We need to wrap the ldb tests in the subunit blackbox helpers.
We also needed to change to the right directory, or else the :< file://
syntax check does not work, as samba4.png is not found.
Andrew Bartlett
Andrew Bartlett [Wed, 4 Apr 2012 02:51:00 +0000 (12:51 +1000)]
Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"
This reverts commit
40a4aea8918c2637703af03383f440d068820e48.
Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.
Andrew Bartlett
Jeremy Allison [Mon, 9 Apr 2012 22:31:23 +0000 (15:31 -0700)]
On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104
Jelmer Vernooij [Mon, 9 Apr 2012 22:45:20 +0000 (00:45 +0200)]
wafsamba/bundled: Fix typo in tuplize_version.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Apr 10 02:21:39 CEST 2012 on sn-devel-104
Jelmer Vernooij [Mon, 9 Apr 2012 18:05:06 +0000 (20:05 +0200)]
wafsamba: Parse Python versions as integers separated by dots.
This causes tdb "1.2.10" to no longer be considered older than "1.2.9".
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Apr 9 23:16:17 CEST 2012 on sn-devel-104
Jeremy Allison [Mon, 9 Apr 2012 18:04:07 +0000 (11:04 -0700)]
Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms that don't have these.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 9 21:40:42 CEST 2012 on sn-devel-104
Volker Lendecke [Sun, 8 Apr 2012 22:44:38 +0000 (00:44 +0200)]
libreplace: We have a poll replacement based on select
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Apr 9 19:39:51 CEST 2012 on sn-devel-104
Volker Lendecke [Sun, 8 Apr 2012 22:40:38 +0000 (00:40 +0200)]
tevent: Fix a typo
Volker Lendecke [Mon, 9 Apr 2012 07:17:29 +0000 (09:17 +0200)]
s3: Fix the pthreadpool build on OS/X
OS/X does not have clock_gettime, and without replace.h we do not
get the replacement macro
Volker Lendecke [Sun, 8 Apr 2012 19:49:59 +0000 (21:49 +0200)]
s3: Initialize aio_pending_size from aio_pthread
Volker Lendecke [Sun, 8 Apr 2012 19:47:38 +0000 (21:47 +0200)]
s3: Initialize aio_pending_size from aio_pthread
Volker Lendecke [Sun, 8 Apr 2012 18:11:53 +0000 (20:11 +0200)]
s3: Move the aio signal init to the vfs module
On platforms that don't have an RT signal space, signal initialization
fails. aio_fork and aio_pthread don't need the signal, so this would
block them from running as well.
Andrew Bartlett [Mon, 9 Apr 2012 04:52:03 +0000 (14:52 +1000)]
autobuild: Also test a distribution-style build with external libs
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 9 10:06:38 CEST 2012 on sn-devel-104
Jelmer Vernooij [Sun, 8 Apr 2012 01:56:24 +0000 (03:56 +0200)]
wafsamba: Return missing libs rather than last syslib.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr 8 05:31:15 CEST 2012 on sn-devel-104
Volker Lendecke [Sat, 7 Apr 2012 10:33:32 +0000 (12:33 +0200)]
s3: Compile fix for dbwrap_file.c
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Apr 7 14:10:35 CEST 2012 on sn-devel-104
Jeremy Allison [Fri, 6 Apr 2012 22:35:55 +0000 (15:35 -0700)]
Found whilst back-porting the fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.
The delete tokens are unique to each name hash representing a pathname,
if we don't correctly return here we'll add duplicate tokens for a
given pasname hash.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr 7 02:13:58 CEST 2012 on sn-devel-104
Jeremy Allison [Fri, 6 Apr 2012 21:20:12 +0000 (14:20 -0700)]
Bug found by Herb. blkcnt_t st_ex_blksize is defined as a signed value. When it is
on a 32-bit system and defined as a long, then inside vfswrap_get_alloc_size()
we cast to a uint64_t. This sign-extends when converting to unsigned,
so if the high bit of st_ex_blksize is set we return insane values to clients.
Björn Baumbach [Wed, 4 Apr 2012 14:58:24 +0000 (16:58 +0200)]
docs-xml: fix default name resolve order (fix bug #7564)
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Apr 6 09:54:37 CEST 2012 on sn-devel-104
Björn Baumbach [Wed, 4 Apr 2012 14:41:35 +0000 (16:41 +0200)]
docs: remove whitespace in example samba.ldif (fix bug #8789)
Björn Baumbach [Tue, 17 Jan 2012 11:31:17 +0000 (12:31 +0100)]
docs: add reload-printers command to smbcontrol manual page
Björn Baumbach [Tue, 10 Jan 2012 15:59:38 +0000 (16:59 +0100)]
s3-utils: add do_reload_printers command to smbcontol
Add command to force smbd to reload printers by sending MSG_PRINTER_PCAP.
Andrew Bartlett [Thu, 5 Apr 2012 04:53:08 +0000 (14:53 +1000)]
build: Remove SMB_OFF_T, replace with off_t
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 3 Apr 2012 22:47:26 +0000 (08:47 +1000)]
s3-build: Remove unused configure checks for xattr functions
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 5 07:13:29 CEST 2012 on sn-devel-104
Andrew Bartlett [Tue, 3 Apr 2012 22:46:25 +0000 (08:46 +1000)]
s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to removexattr.
Andrew Bartlett
Andrew Bartlett [Tue, 3 Apr 2012 22:35:01 +0000 (08:35 +1000)]
s3-build: Remove unused configure checks for xattr functions
Andrew Bartlett [Tue, 3 Apr 2012 22:34:25 +0000 (08:34 +1000)]
s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to listxattr.
Andrew Bartlett
Andrew Bartlett [Tue, 3 Apr 2012 22:26:22 +0000 (08:26 +1000)]
s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to listxattr.
Andrew Bartlett