kai/samba-autobuild/.git
8 years agos4-krb5: be a bit less verbose about krb5 packets
Andrew Tridgell [Fri, 1 Apr 2011 04:57:39 +0000 (15:57 +1100)]
s4-krb5: be a bit less verbose about krb5 packets

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-loadparm: be a bit less verbose about smb.conf processing
Andrew Tridgell [Fri, 1 Apr 2011 04:57:22 +0000 (15:57 +1100)]
s4-loadparm: be a bit less verbose about smb.conf processing

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-libnet: honour convention of DEBUGLEVEL>=10 for NDR print
Andrew Tridgell [Fri, 1 Apr 2011 04:56:58 +0000 (15:56 +1100)]
s4-libnet: honour convention of DEBUGLEVEL>=10 for NDR print

8 years agodebug: default debug to stderr
Andrew Tridgell [Fri, 1 Apr 2011 03:55:37 +0000 (14:55 +1100)]
debug: default debug to stderr

if setup_logging() hasn't been called then default to sending debug to
stderr

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agoAvoid uppercasing server role in error message.
Jelmer Vernooij [Sun, 3 Apr 2011 17:13:45 +0000 (19:13 +0200)]
Avoid uppercasing server role in error message.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr  3 20:01:48 CEST 2011 on sn-devel-104

8 years agos3: Remove some unused code
Volker Lendecke [Sun, 3 Apr 2011 15:46:41 +0000 (17:46 +0200)]
s3: Remove some unused code

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr  3 18:32:51 CEST 2011 on sn-devel-104

8 years agoFix compilation without external heimdal.
Jelmer Vernooij [Sun, 3 Apr 2011 14:32:27 +0000 (16:32 +0200)]
Fix compilation without external heimdal.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr  3 17:18:56 CEST 2011 on sn-devel-104

8 years agouse system heimdal headers if possible, fix missing dependencies on hx509 and krb5...
Jelmer Vernooij [Sun, 3 Apr 2011 13:40:24 +0000 (15:40 +0200)]
use system heimdal headers if possible, fix missing dependencies on hx509 and krb5 libraries.

8 years agos3: Add a quick test for bug 8042
Volker Lendecke [Sun, 3 Apr 2011 12:36:53 +0000 (14:36 +0200)]
s3: Add a quick test for bug 8042

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr  3 16:13:21 CEST 2011 on sn-devel-104

8 years agos3: Fix bug 8042: File creation on OS/X
Volker Lendecke [Sun, 3 Apr 2011 11:57:11 +0000 (13:57 +0200)]
s3: Fix bug 8042: File creation on OS/X

With a case insensitive file system the stat cache lookup leaked the parent
directorys stat information from unix_convert into the smb_filename. This led
open_file_ntcreate to believe it just created a directory.

In the case where we do the search we already invalidate the stat struct.

Thanks to TAKAHASHI Motonobu for insisting! :-)

Volker

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr  3 14:54:27 CEST 2011 on sn-devel-104

8 years agoFix for servers that don't put a path separator at the end of the service.
Larry Reid [Sat, 26 Mar 2011 22:39:27 +0000 (15:39 -0700)]
Fix for servers that don't put a path separator at the end of the service.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr  3 10:33:42 CEST 2011 on sn-devel-104

8 years agos3:waf: add cluster support / ctdb checks.
Michael Adam [Sat, 2 Apr 2011 00:20:49 +0000 (02:20 +0200)]
s3:waf: add cluster support / ctdb checks.

The checks are roughtly taken from the autoconf ctdb checks.

I was not able to implement checks with CHECK_DECL, CHECK_TYPE,
CHECK_HEADER and friends, because the ctdb headers seem to need too
special a setup of includes and defines in order to compile.
So I used CHECK_CODE() in all checks.

In the long run, this should be changed.

I supported a --with-ctdb-dir options to allow for building
against a ctdb that is not installed into /usr (e.g. against
a local git checkout). In order to implement this, I had to
hand includes in to the CHECK_CODE function.
Here I found a problem with CHECK_CODE (or even the core waf
conf.check() function: The CHECK_CODE function does not
expand the includes it gets (i.e. '#' is not expanded to the
base dir, and relative paths are left relative). But the core
check() function seems to ignore all include paths that are
not absolute paths. Hence in particular the usual default '# .'
for the includes is useless. So I preprocessed the list of includes
for the cluster checks. But I assume that it would be useful
to move this expansion into CHECK_CODE or even into the core
waf check function.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Apr  2 03:26:55 CEST 2011 on sn-devel-104

8 years agos3:waf:compare_config_h3.sh: make diff tool configurable as env var "DIFF"
Michael Adam [Fri, 1 Apr 2011 22:33:52 +0000 (00:33 +0200)]
s3:waf:compare_config_h3.sh: make diff tool configurable as env var "DIFF"

8 years agos3:waf:compare_config_h3.sh: specify autoconf-config.h as commandline parameter
Michael Adam [Fri, 1 Apr 2011 22:29:51 +0000 (00:29 +0200)]
s3:waf:compare_config_h3.sh: specify autoconf-config.h as commandline parameter

8 years agoFix bug #7987 - ACL can get lost when files are being renamed.
Jeremy Allison [Fri, 1 Apr 2011 23:50:28 +0000 (16:50 -0700)]
Fix bug #7987 - ACL can get lost when files are being renamed.

There is no reason for smbd with Windows ACLs to use chmod
or fchmod unless it's a file opened with UNIX extensions or
with posix pathnames.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr  2 02:40:43 CEST 2011 on sn-devel-104

8 years agoFix bug #8047 - mdns registration doesn't work if "interfaces" is used in smb.conf
Marc A. Dahlhaus [Fri, 1 Apr 2011 20:26:31 +0000 (13:26 -0700)]
Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in smb.conf

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr  1 23:15:34 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULT
Volker Lendecke [Fri, 1 Apr 2011 06:40:38 +0000 (08:40 +0200)]
s3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULT

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr  1 09:35:19 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 1136: CONSTANT_EXPRESSION_RESULT
Volker Lendecke [Fri, 1 Apr 2011 06:40:38 +0000 (08:40 +0200)]
s3: Fix Coverity ID 1136: CONSTANT_EXPRESSION_RESULT

8 years agodebug: Restore the s3-style check in check_log_size()
Volker Lendecke [Thu, 31 Mar 2011 15:02:27 +0000 (17:02 +0200)]
debug: Restore the s3-style check in check_log_size()

This has caused me considerable grief.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 31 19:42:38 CEST 2011 on sn-devel-104

8 years agos3:configure: allow building without SCHEDULE_FOR_DELETION with --enable-old-ctdb
Michael Adam [Thu, 31 Mar 2011 14:12:02 +0000 (16:12 +0200)]
s3:configure: allow building without SCHEDULE_FOR_DELETION with --enable-old-ctdb

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 31 18:55:38 CEST 2011 on sn-devel-104

8 years agos3:configure: introduce "--enable-old-ctdb" to enable enforcing build against old...
Michael Adam [Thu, 31 Mar 2011 14:06:36 +0000 (16:06 +0200)]
s3:configure: introduce "--enable-old-ctdb" to enable enforcing build against old ctdb

8 years agos3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETION
Michael Adam [Thu, 31 Mar 2011 13:39:41 +0000 (15:39 +0200)]
s3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETION

8 years agos3:configure: rework logic of ctdb/clustering checks
Michael Adam [Thu, 31 Mar 2011 13:23:28 +0000 (15:23 +0200)]
s3:configure: rework logic of ctdb/clustering checks

8 years agos3:configure: remove unused variable CTDB_CFLAGS
Michael Adam [Thu, 31 Mar 2011 12:17:44 +0000 (14:17 +0200)]
s3:configure: remove unused variable CTDB_CFLAGS

8 years agos3:configure: fix a comment.
Michael Adam [Thu, 31 Mar 2011 11:45:21 +0000 (13:45 +0200)]
s3:configure: fix a comment.

8 years agos3:dbwrap_ctdb: in ctdb_delete, send a SCHEDULE_FOR_DELETION control to local ctdbd
Michael Adam [Wed, 22 Dec 2010 13:16:07 +0000 (14:16 +0100)]
s3:dbwrap_ctdb: in ctdb_delete, send a SCHEDULE_FOR_DELETION control to local ctdbd

This way, the record will be scheduled for fast vacuuming.

This is sent with the NOREPLY flag, so ctd should not sent
a reply packet and samba does not expect one. Hence, it
is not important for the success of the db_ctdb_delete command
whether or not the ctdbd we are running against supports the
SCHEDULE_FOR_DELETION control.

8 years agos3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the control
Michael Adam [Tue, 8 Mar 2011 15:26:34 +0000 (16:26 +0100)]
s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the control

The only flag that is currently used is the NOREPLY flag to indicate that
the client expects no reply packet. This needs to get passed down to the
ctdb daemon so that it really does not send a reply.

8 years agos3:ctdb: samba can now handle the NOREPLY flag
Michael Adam [Thu, 23 Dec 2010 15:46:24 +0000 (16:46 +0100)]
s3:ctdb: samba can now handle the NOREPLY flag

Revert "samba3 can't handle NOREPLY yet"

This reverts commit 9bf211db6d7d6ef6e59508de69d6d8dfe5bae059.

8 years agos3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.
Michael Adam [Thu, 23 Dec 2010 15:43:55 +0000 (16:43 +0100)]
s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.

8 years agos3-net: Do not use uninitialized value
Sumit Bose [Thu, 31 Mar 2011 12:09:45 +0000 (14:09 +0200)]
s3-net: Do not use uninitialized value

s3-net: Do not use uninitialized value

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Mar 31 18:09:57 CEST 2011 on sn-devel-104

8 years agos3-winbindd: Use the correct enums for samr_QueryDomainInfo.
Andreas Schneider [Wed, 30 Mar 2011 09:08:31 +0000 (11:08 +0200)]
s3-winbindd: Use the correct enums for samr_QueryDomainInfo.

8 years agolib/util/charset Add tests for strcasecmp_m(), talloc_strupper() et al
Andrew Bartlett [Thu, 31 Mar 2011 05:44:24 +0000 (16:44 +1100)]
lib/util/charset Add tests for strcasecmp_m(), talloc_strupper() et al

This adds tests for:
 strncasecmp_m
 strcasecmp_m
 strupper_talloc_n
 strlower_talloc
 strhaslower
 strhasupper

The tests can certainly be improved with pre-calculated upper and
lower case text, but this at least puts them though their paces.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar 31 14:24:22 CEST 2011 on sn-devel-104

8 years agos4-dsdb: cope with failed searches in the linked attributes callback
Andrew Tridgell [Thu, 31 Mar 2011 04:16:51 +0000 (15:16 +1100)]
s4-dsdb: cope with failed searches in the linked attributes callback

This fixes a bug where we try to add an empty backlink because the
search for the forward link failed.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 31 13:37:36 CEST 2011 on sn-devel-104

8 years agos3-torture: a very simple test for convert_string_error()
Andrew Tridgell [Wed, 30 Mar 2011 06:30:08 +0000 (17:30 +1100)]
s3-torture: a very simple test for convert_string_error()

this is a very simple test based on the example volker gave in
1e50f9a5. A more sophisticated test will also be worthwhile, but this
at least gives us a basic test while changes are being made

8 years agos3: Fix a typo
Volker Lendecke [Thu, 31 Mar 2011 10:02:26 +0000 (12:02 +0200)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 31 12:50:53 CEST 2011 on sn-devel-104

8 years agocharconv: Use talloc_tos() in the S3 build
Volker Lendecke [Thu, 31 Mar 2011 06:25:32 +0000 (08:25 +0200)]
charconv: Use talloc_tos() in the S3 build

In S3 we put a talloc_pool on top of the stack so that an allocation from
talloc_tos() normally is just a pointer increment.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 31 09:14:01 CEST 2011 on sn-devel-104

8 years agoArg. I hate the "if (xxx) return foo" all on one line style of code.
Jeremy Allison [Thu, 31 Mar 2011 02:27:29 +0000 (19:27 -0700)]
Arg. I hate the "if (xxx) return foo" all on one line style of code.

Fix the talloc leaks I introduced by not spotting these returns.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 31 05:19:34 CEST 2011 on sn-devel-104

8 years agoDon't burn 2k of stack on every iconv, use the heap when it's a slow call.
Jeremy Allison [Thu, 31 Mar 2011 01:13:05 +0000 (18:13 -0700)]
Don't burn 2k of stack on every iconv, use the heap when it's a slow call.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 31 04:09:09 CEST 2011 on sn-devel-104

8 years agoFix bug #7996 - sgid bit lost on folder rename.
Jeremy Allison [Thu, 31 Mar 2011 01:00:09 +0000 (18:00 -0700)]
Fix bug #7996 - sgid bit lost on folder rename.

Refuse to set dos attributes into unix mode bits on such a
folder.

8 years agoSMBTA: make vfs_smb_traffic_analyzer aware of the sendfile and recvfile functionality...
Holger Hetterich [Tue, 29 Mar 2011 20:16:10 +0000 (22:16 +0200)]
SMBTA: make vfs_smb_traffic_analyzer aware of the sendfile and recvfile functionality and store the results as common read/write results.

8 years agolib/util/charset smb_panic() on incorrect use of strlen_m_ext
Andrew Bartlett [Wed, 30 Mar 2011 23:32:52 +0000 (10:32 +1100)]
lib/util/charset smb_panic() on incorrect use of strlen_m_ext

This may save a developer some time in the future.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar 31 02:40:31 CEST 2011 on sn-devel-104

8 years agolib/util/charset Add tests for strlen_m_ext() and convert_string_talloc()
Andrew Bartlett [Wed, 30 Mar 2011 23:28:36 +0000 (10:28 +1100)]
lib/util/charset Add tests for strlen_m_ext() and convert_string_talloc()

This convers a few more cases for convert_string_talloc() and
introduces tests for strlen_m_ext() across complex multibyte strings.

Andrew Bartlett

8 years agolib/util/charset Add wrapper to allow testing of strlen_m_ext()
Andrew Bartlett [Wed, 30 Mar 2011 23:27:41 +0000 (10:27 +1100)]
lib/util/charset Add wrapper to allow testing of strlen_m_ext()

This allows test routines to force in particular character sets, and
not rely on the smb.conf.

Andrew Bartlett

8 years agolib/util/charset correct calculation of UTF8 character sizes
Andrew Bartlett [Wed, 30 Mar 2011 23:26:08 +0000 (10:26 +1100)]
lib/util/charset correct calculation of UTF8 character sizes

Characters between 0x800 0x0FFFF are 3 bytes long.

Andrew Bartlett

8 years agos3-samr: make getgrgid() failure a little more visible in _samr_CreateDomAlias().
Günther Deschner [Wed, 30 Mar 2011 22:08:57 +0000 (00:08 +0200)]
s3-samr: make getgrgid() failure a little more visible in _samr_CreateDomAlias().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 31 01:00:42 CEST 2011 on sn-devel-104

8 years agos3-idmap: fix the build of idmap_hash on FreeBSD.
Günther Deschner [Wed, 30 Mar 2011 22:08:19 +0000 (00:08 +0200)]
s3-idmap: fix the build of idmap_hash on FreeBSD.

Guenther

8 years agos3-libndr: add ../librpc/ndr/libndr.h include in some places.
Günther Deschner [Wed, 30 Mar 2011 21:47:34 +0000 (23:47 +0200)]
s3-libndr: add ../librpc/ndr/libndr.h include in some places.

Guenther

8 years agos3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.h
Günther Deschner [Wed, 30 Mar 2011 21:21:42 +0000 (23:21 +0200)]
s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.h

Guenther

8 years agorep_parse_prs: remove some dead, unused code.
Günther Deschner [Wed, 30 Mar 2011 21:17:25 +0000 (23:17 +0200)]
rep_parse_prs: remove some dead, unused code.

Guenther

8 years agoFix convert_string() to take a *converted_size arg. and return a bool.
Jeremy Allison [Wed, 30 Mar 2011 20:08:31 +0000 (13:08 -0700)]
Fix convert_string() to take a *converted_size arg. and return a bool.

Makes these interfaces much harder to misuse and easier to ensure error
checking.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104

8 years agos3-build: make it a little easier to build smbtorture4.
Günther Deschner [Wed, 30 Mar 2011 20:24:42 +0000 (22:24 +0200)]
s3-build: make it a little easier to build smbtorture4.

Only configure with --enable-socket-wrapper --enable-nss-wrapper
--enable-uid-wrapper, not --enable-developer which turns on at least one -Werror
switch.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 23:12:42 CEST 2011 on sn-devel-104

8 years agos3-vfs: try to fix build of aio_fork module.
Günther Deschner [Wed, 30 Mar 2011 20:24:18 +0000 (22:24 +0200)]
s3-vfs: try to fix build of aio_fork module.

Guenther

8 years agoChange convert_string_internal() and convert_string_error() to bool return.
Jeremy Allison [Wed, 30 Mar 2011 17:27:04 +0000 (10:27 -0700)]
Change convert_string_internal() and convert_string_error() to bool return.

Move closer to makeing all convert_string_XXX functions return bool.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 30 20:58:10 CEST 2011 on sn-devel-104

8 years agoFix the nstring calls to use the correct sizes.
Jeremy Allison [Wed, 30 Mar 2011 17:13:01 +0000 (10:13 -0700)]
Fix the nstring calls to use the correct sizes.

8 years agoThis doesn't look like it has anything to do with character set conversion, but it...
Jeremy Allison [Wed, 30 Mar 2011 16:58:22 +0000 (09:58 -0700)]
This doesn't look like it has anything to do with character set conversion, but it does :-).

Turns out one of the *really* significant differences between
convert_string() in source4 and source3, is that the one in
source3 will return 0 for byte length converted when called
with dest_len = 0 whereas the one in source4 returns (size_t)-1
and sets errno to E2BIG.

Allow the ndr_string code to cope with the (arguably correct)
way that the source4 implementation works. This code only gets
excercised in the print spooler tests, which aren't run in source4,
which is why this bug has lasted for so long.

You don't want to know how long it took me to find this :-).

Jeremy.

8 years agos3: Fix g_lock_lock after the select/poll conversion
Volker Lendecke [Wed, 30 Mar 2011 14:38:31 +0000 (16:38 +0200)]
s3: Fix g_lock_lock after the select/poll conversion

Without clustering we don't have an fd to listen on, and sys_poll
needs one element of space

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104

8 years agos3-smbd: try to fix the irix build.
Günther Deschner [Wed, 30 Mar 2011 14:18:38 +0000 (16:18 +0200)]
s3-smbd: try to fix the irix build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 17:17:58 CEST 2011 on sn-devel-104

8 years agos3-vfs acl modules: more non-linux build fixes.
Günther Deschner [Wed, 30 Mar 2011 13:14:05 +0000 (15:14 +0200)]
s3-vfs acl modules: more non-linux build fixes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 16:00:02 CEST 2011 on sn-devel-104

8 years agos3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.
Günther Deschner [Wed, 30 Mar 2011 13:09:10 +0000 (15:09 +0200)]
s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.

Guenther

8 years agos3-passdb: move some passdb defines to passdb.h
Günther Deschner [Wed, 30 Mar 2011 12:49:37 +0000 (14:49 +0200)]
s3-passdb: move some passdb defines to passdb.h

Guenther

8 years agos3-proto: pure cosmetics, remove some generated comments.
Günther Deschner [Wed, 30 Mar 2011 12:48:18 +0000 (14:48 +0200)]
s3-proto: pure cosmetics, remove some generated comments.

Guenther

8 years agos3-winbind: try to fix the build on hosts w/o winbind support.
Günther Deschner [Wed, 30 Mar 2011 12:03:13 +0000 (14:03 +0200)]
s3-winbind: try to fix the build on hosts w/o winbind support.

Guenther

8 years agos3-vfs_solarisacl: try to fix the solaris build.
Günther Deschner [Wed, 30 Mar 2011 11:46:59 +0000 (13:46 +0200)]
s3-vfs_solarisacl: try to fix the solaris build.

Guenther

8 years agos3: Use cli_ntcreate to when listing snapshots
Volker Lendecke [Wed, 30 Mar 2011 11:19:46 +0000 (13:19 +0200)]
s3: Use cli_ntcreate to when listing snapshots

This works for directories as well

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 14:37:02 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 2041, "UNUSED_VALUE"
Günther Deschner [Wed, 30 Mar 2011 10:39:36 +0000 (12:39 +0200)]
s3: Fix Coverity ID 2041, "UNUSED_VALUE"

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 13:49:35 CEST 2011 on sn-devel-104

8 years agolib/util/charset Add tests for convert_string_talloc_handle()
Andrew Bartlett [Wed, 30 Mar 2011 06:49:30 +0000 (17:49 +1100)]
lib/util/charset Add tests for convert_string_talloc_handle()

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 30 13:02:47 CEST 2011 on sn-devel-104

8 years agolib/util Move base64 functions into lib/util/base64.c
Andrew Bartlett [Wed, 30 Mar 2011 06:49:01 +0000 (17:49 +1100)]
lib/util Move base64 functions into lib/util/base64.c

Andrew Bartlett

8 years agos3:lib make lazy_initialize_conv() static
Andrew Bartlett [Tue, 29 Mar 2011 02:21:52 +0000 (13:21 +1100)]
s3:lib make lazy_initialize_conv() static

8 years agolib/util/charset Remove pointless static bool initialised
Andrew Bartlett [Mon, 28 Mar 2011 22:45:22 +0000 (09:45 +1100)]
lib/util/charset Remove pointless static bool initialised

8 years agos3: try to fix the build on some non-linux buildfarm machines.
Günther Deschner [Wed, 30 Mar 2011 08:50:10 +0000 (10:50 +0200)]
s3: try to fix the build on some non-linux buildfarm machines.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 2217: RESOURCE_LEAK
Volker Lendecke [Wed, 30 Mar 2011 05:06:18 +0000 (07:06 +0200)]
s3: Fix Coverity ID 2217: RESOURCE_LEAK

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 10:45:44 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 2220: RESOURCE_LEAK
Volker Lendecke [Wed, 30 Mar 2011 05:06:18 +0000 (07:06 +0200)]
s3: Fix Coverity ID 2220: RESOURCE_LEAK

8 years agos3: Fix Coverity ID 2221: RESOURCE_LEAK
Volker Lendecke [Wed, 30 Mar 2011 05:06:18 +0000 (07:06 +0200)]
s3: Fix Coverity ID 2221: RESOURCE_LEAK

8 years agos3: Fix Coverity ID 2222: RESOURCE_LEAK
Volker Lendecke [Wed, 30 Mar 2011 05:06:18 +0000 (07:06 +0200)]
s3: Fix Coverity ID 2222: RESOURCE_LEAK

8 years agos3: Fix Coverity ID 2223: RESOURCE_LEAK
Volker Lendecke [Wed, 30 Mar 2011 05:04:47 +0000 (07:04 +0200)]
s3: Fix Coverity ID 2223: RESOURCE_LEAK

8 years agos3: Fix Coverity ID 2236: REVERSE_INULL
Volker Lendecke [Wed, 30 Mar 2011 04:57:05 +0000 (06:57 +0200)]
s3: Fix Coverity ID 2236: REVERSE_INULL

We have already dereferenced "b", and the other calls in this loop can only
have worked with a valid handle

8 years agos3: Fix Coverity ID 2332: MISSING_BREAK
Volker Lendecke [Wed, 30 Mar 2011 04:41:18 +0000 (06:41 +0200)]
s3: Fix Coverity ID 2332: MISSING_BREAK

8 years agos3: Fix Coverity ID 2237: REVERSE_INULL
Volker Lendecke [Wed, 30 Mar 2011 04:53:15 +0000 (06:53 +0200)]
s3: Fix Coverity ID 2237: REVERSE_INULL

8 years agotdb: Fix Coverity ID 2238: SECURE_CODING
Volker Lendecke [Wed, 30 Mar 2011 04:51:40 +0000 (06:51 +0200)]
tdb: Fix Coverity ID 2238: SECURE_CODING

8 years agos3: Fix Coverity ID 2304: FORWARD_NULL
Volker Lendecke [Wed, 30 Mar 2011 04:45:04 +0000 (06:45 +0200)]
s3: Fix Coverity ID 2304: FORWARD_NULL

8 years agos4:lib/policy/gp_ldap.c - make more use of LDB result constants
Matthias Dieter Wallnöfer [Sun, 27 Mar 2011 20:14:56 +0000 (22:14 +0200)]
s4:lib/policy/gp_ldap.c - make more use of LDB result constants

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Mar 30 09:33:38 CEST 2011 on sn-devel-104

8 years agos4:lib/registry/registry.h - align a copyright line in header comment
Matthias Dieter Wallnöfer [Fri, 25 Mar 2011 19:03:42 +0000 (20:03 +0100)]
s4:lib/registry/registry.h - align a copyright line in header comment

8 years agotalloc - improve doxygen comment of "talloc_move"
Matthias Dieter Wallnöfer [Thu, 24 Mar 2011 08:41:19 +0000 (09:41 +0100)]
talloc - improve doxygen comment of "talloc_move"

Express better that this should be a pointer of a pointer.

Reviewed-by: Tridge
8 years agos4:smb_server/smb/trans2.c - "talloc_move" isn't strictly necessary here
Matthias Dieter Wallnöfer [Thu, 24 Mar 2011 09:28:10 +0000 (10:28 +0100)]
s4:smb_server/smb/trans2.c - "talloc_move" isn't strictly necessary here

Since the "set" will be free'd afterwards "talloc_steal" is enough.

Reviewed-by: Tridge
8 years agos3-ctdb_wrap: remove unused variable from db_ctdb_fetch_persistent().
Günther Deschner [Mon, 28 Mar 2011 10:27:21 +0000 (12:27 +0200)]
s3-ctdb_wrap: remove unused variable from db_ctdb_fetch_persistent().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 02:00:50 CEST 2011 on sn-devel-104

8 years agos3-rpc_server: move access check functions out of samr server.
Günther Deschner [Fri, 25 Mar 2011 13:12:59 +0000 (14:12 +0100)]
s3-rpc_server: move access check functions out of samr server.

Guenther

8 years agos3: only include ntioctl.h where needed.
Günther Deschner [Fri, 25 Mar 2011 12:42:42 +0000 (13:42 +0100)]
s3: only include ntioctl.h where needed.

Guenther

8 years agos3: only include lib/privileges.h where needed.
Günther Deschner [Fri, 25 Mar 2011 10:56:52 +0000 (11:56 +0100)]
s3: only include lib/privileges.h where needed.

This finally removes the global lsa.h inclusion.

Guenther

8 years agos3: include ../librpc/gen_ndr/lsa.h where needed.
Günther Deschner [Fri, 25 Mar 2011 10:56:10 +0000 (11:56 +0100)]
s3: include ../librpc/gen_ndr/lsa.h where needed.

Guenther

8 years agos3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.
Günther Deschner [Fri, 25 Mar 2011 10:40:00 +0000 (11:40 +0100)]
s3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.

Guenther

8 years agos3-includes: only include ntdomain.h where needed.
Günther Deschner [Thu, 24 Mar 2011 21:33:07 +0000 (22:33 +0100)]
s3-includes: only include ntdomain.h where needed.

Guenther

8 years agopidl: add an include for "ntdomain.h" for s3 server stubs.
Günther Deschner [Thu, 24 Mar 2011 21:32:17 +0000 (22:32 +0100)]
pidl: add an include for "ntdomain.h" for s3 server stubs.

Guenther

8 years agos3-messages: make ndr_messaging.h part of messages.h.
Günther Deschner [Thu, 24 Mar 2011 14:56:32 +0000 (15:56 +0100)]
s3-messages: make ndr_messaging.h part of messages.h.

Guenther

8 years agos3-messages: only include messages.h where needed.
Günther Deschner [Thu, 24 Mar 2011 14:31:06 +0000 (15:31 +0100)]
s3-messages: only include messages.h where needed.

Guenther

8 years agos3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.
Günther Deschner [Thu, 24 Mar 2011 13:16:28 +0000 (14:16 +0100)]
s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.

Guenther

8 years agos3-includes: finally remove global include of auth.h.
Günther Deschner [Fri, 25 Mar 2011 01:28:17 +0000 (02:28 +0100)]
s3-includes: finally remove global include of auth.h.

Guenther

8 years agos3-auth: vfs modules need auth.h
Günther Deschner [Thu, 24 Mar 2011 13:15:54 +0000 (14:15 +0100)]
s3-auth: vfs modules need auth.h

Guenther

8 years agos3-auth: printing needs auth.h
Günther Deschner [Thu, 24 Mar 2011 13:12:42 +0000 (14:12 +0100)]
s3-auth: printing needs auth.h

Guenther

8 years agos3-auth: smbd needs auth.h
Günther Deschner [Thu, 24 Mar 2011 12:46:20 +0000 (13:46 +0100)]
s3-auth: smbd needs auth.h

Guenther

8 years agos3-auth: rpc_server needs auth.h
Günther Deschner [Thu, 24 Mar 2011 11:08:15 +0000 (12:08 +0100)]
s3-auth: rpc_server needs auth.h

Guenther