samba.git
9 years agos3/vfs: change fallocate mode flags from enum->uint32_t
David Disseldorp [Mon, 9 Feb 2015 17:21:59 +0000 (18:21 +0100)]
s3/vfs: change fallocate mode flags from enum->uint32_t

The Linux fallocate syscall offers a mode parameter which can take the
following flags:
FALLOC_FL_KEEP_SIZE
FALLOC_FL_PUNCH_HOLE (since 2.6.38)
FALLOC_FL_COLLAPSE_RANGE (since 3.15)
FALLOC_FL_ZERO_RANGE (since 3.14)

The flags are not exclusive, e.g. FALLOC_FL_PUNCH_HOLE must be specified
alongside FALLOC_FL_KEEP_SIZE.

Samba currently takes a vfs_fallocate_mode enum parameter for the VFS
fallocate hook, taking either an EXTEND_SIZE or KEEP_SIZE value. This
commit changes the fallocate hook such that it accepts a uint32_t flags
parameter, in preparation for PUNCH_HOLE and ZERO_RANGE support.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
9 years agolib/system: remove useless HAVE_LINUX_FALLOCATE64 logic
David Disseldorp [Mon, 9 Feb 2015 14:51:28 +0000 (15:51 +0100)]
lib/system: remove useless HAVE_LINUX_FALLOCATE64 logic

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
9 years agos3-winbind: Fix chached user group lookup of trusted domains.
Michael Adam [Mon, 9 Mar 2015 14:15:37 +0000 (15:15 +0100)]
s3-winbind: Fix chached user group lookup of trusted domains.

If a user group lookup has aleady been done before with a machine
account we did always return the incomplete information from the cache.
This patch makes sure we return the correct group information from the
netsamlogon cache.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11143

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Mar  9 19:23:25 CET 2015 on sn-devel-104

9 years agotorture-krb5: Add an initial test for s4u2self behaviour
Andrew Bartlett [Sun, 8 Mar 2015 22:12:01 +0000 (11:12 +1300)]
torture-krb5: Add an initial test for s4u2self behaviour

This test only checks for S4U2Self of the same user, but shows
that a user account is not a valid service for this purpose.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Mar  9 12:10:09 CET 2015 on sn-devel-104

9 years agokdc: Fix S4U2Self handling with KRB5_NT_ENTERPRISE_PRINCIPAL containing a UPN
Andrew Bartlett [Mon, 9 Mar 2015 03:00:56 +0000 (16:00 +1300)]
kdc: Fix S4U2Self handling with KRB5_NT_ENTERPRISE_PRINCIPAL containing a UPN

This is now handled properly by samba_kdc_lookup_server() and this wrapper actually
breaks things.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
9 years agotalloc: version 2.1.2 talloc-2.1.2
Stefan Metzmacher [Mon, 9 Mar 2015 08:07:24 +0000 (09:07 +0100)]
talloc: version 2.1.2

Changes:
- Allow destructors to reparent the object
- Allow destructors to remove itself
- Build improvements

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
9 years agotalloc: fix _talloc_total_limit_size prototype
Stefan Metzmacher [Tue, 27 Jan 2015 12:07:34 +0000 (13:07 +0100)]
talloc: fix _talloc_total_limit_size prototype

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
9 years agolib: talloc: Test suite for the new destructor reparent logic.
Jeremy Allison [Wed, 4 Mar 2015 01:12:32 +0000 (17:12 -0800)]
lib: talloc: Test suite for the new destructor reparent logic.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sun Mar  8 20:52:43 CET 2015 on sn-devel-104

9 years agolib: talloc: Allow destructors to reparent the object they're called on.
Jeremy Allison [Wed, 4 Mar 2015 01:02:47 +0000 (17:02 -0800)]
lib: talloc: Allow destructors to reparent the object they're called on.

If a destructor returns failure (-1) when freeing a child, talloc
must then reparent the child.

Firstly it tries the owner of any reference, next the parent of the
current object calling _talloc_free_children_internal(), and finally
the null context in the last resort.

If a destructor reparented its own object, which can be a very
desirable thing to do (a destructor can make a decision it isn't
time to die yet, and as the parent may be going away it might
want to move itself to longer-term storage) then this new parent
gets overwritten by the existing reparenting logic.

This patch checks when freeing a child if it already reparented
itself, and if it did doesn't then overwrite the new parent.

Makes destructors more flexible.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
9 years agolib: talloc: Fix bug when calling a destructor.
Jeremy Allison [Thu, 5 Mar 2015 20:48:47 +0000 (12:48 -0800)]
lib: talloc: Fix bug when calling a destructor.

If the destructor itself calls talloc_set_destructor()
and returns -1, the new destructor set is overwritten
by talloc.

Dectect that and leave the new destructor in place.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
9 years agoAdd the definition of FSCTL_SET_INTEGRITY_INFORMATION found from a capture and the...
Richard Sharpe [Sat, 7 Mar 2015 15:46:31 +0000 (07:46 -0800)]
Add the definition of FSCTL_SET_INTEGRITY_INFORMATION found from a capture and the Web.

Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Sun Mar  8 00:43:08 CET 2015 on sn-devel-104

9 years agotorture/fsrvp: remove verification trailer magic field
David Disseldorp [Thu, 5 Mar 2015 00:41:47 +0000 (01:41 +0100)]
torture/fsrvp: remove verification trailer magic field

During initial wire trace analysis, the DCE/RPC PDU verification trailer
was incorrectly identified and tagged in IDL as an FSRVP "magic" blob.

This change removes the incorrectly tagged FSRVP request fields and
corresponding test code - with 1e1b7b1021b16e3ab61c2fca8328c94e60a2c99c
verification trailer parsing is now tested separately.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Mar  7 20:01:20 CET 2015 on sn-devel-104

9 years agowinbind: Make wb_sids2xids_recv work on an array
Volker Lendecke [Thu, 5 Mar 2015 19:59:16 +0000 (20:59 +0100)]
winbind: Make wb_sids2xids_recv work on an array

The trigger for this is that Coverity got confused by the dual use of &xid
as an array with the implicit length equality between wb_sids2xids_send
and the array passed in to wb_sids2xids_recv for the result.

I don't want to start doing things just for the Coverity scan, but this
makes the code clearer to me by removing this implicit expected array
length equality.

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Mar  7 15:28:59 CET 2015 on sn-devel-104

9 years agovfs_fruit: Fix CID 1273290 Uninitialized scalar variable
Volker Lendecke [Fri, 6 Mar 2015 09:59:25 +0000 (09:59 +0000)]
vfs_fruit: Fix CID 1273290 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Mar  6 23:56:36 CET 2015 on sn-devel-104

9 years agoprovision: Give a more helpful message when find_provision_key_parameters() fails
Andrew Bartlett [Mon, 2 Mar 2015 00:22:37 +0000 (13:22 +1300)]
provision: Give a more helpful message when find_provision_key_parameters() fails

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Mar  6 20:11:52 CET 2015 on sn-devel-104

9 years agoselftest: Improve renamedcs test
Andrew Bartlett [Fri, 27 Feb 2015 02:56:22 +0000 (15:56 +1300)]
selftest: Improve renamedcs test

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
9 years agos4-lib/cmdline: Fix help for -P / --machine-pass: this no longer implies -k
Andrew Bartlett [Wed, 25 Feb 2015 23:24:21 +0000 (12:24 +1300)]
s4-lib/cmdline: Fix help for -P / --machine-pass: this no longer implies -k

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
9 years agosamba-tool: Add -P to options.CredentialsOptions
Andrew Bartlett [Wed, 25 Feb 2015 23:23:55 +0000 (12:23 +1300)]
samba-tool: Add -P to options.CredentialsOptions

This matches our other binaries, and allows samba-tool commands to run with the machine account.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
9 years agoheimdal: Fix CID 1273430 Double free
Volker Lendecke [Thu, 5 Mar 2015 20:17:31 +0000 (21:17 +0100)]
heimdal: Fix CID 1273430 Double free

I think Coverity is right here: Before the preceding call to
krb5_make_principal we already krb5_free_principal(ctx, tmp_creds.server)
without wiping out tmp_creds.server. The call to krb5_make_principal only
stores something fresh when it also returns 0 a.k.a. success.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Mar  6 17:38:09 CET 2015 on sn-devel-104

9 years agoscript/autobuild.py: build the samba target with --with-profiling-data
Stefan Metzmacher [Mon, 8 Dec 2014 09:30:56 +0000 (10:30 +0100)]
script/autobuild.py: build the samba target with --with-profiling-data

In future we may get also runtime tests for profiling...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Dec 15 16:20:14 CET 2014 on sn-devel-104

(cherry picked from commit 4958fcdfa30fd9d8dc51ceafaab35721e61e72c7)

9 years agos3:smbprofile: profile the system and user space cpu time
Stefan Metzmacher [Fri, 14 Nov 2014 11:52:33 +0000 (12:52 +0100)]
s3:smbprofile: profile the system and user space cpu time

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
9 years agos3:smbprofile: Replace sysv shmem with tdb
Volker Lendecke [Mon, 29 Sep 2014 16:08:17 +0000 (16:08 +0000)]
s3:smbprofile: Replace sysv shmem with tdb

What?

This patch gets rid of the central shared memory segment referenced by
"profile_p". Instead, every smbd gets a static profile_area where it collects
profiling data. Once a second, every smbd writes this profiling data into a
record of its own in a "smbprofile.tdb". smbstatus -P does a tdb_traverse on this
database and sums up what it finds.

Why?

At least in my perception sysv IPC has not the best reputation on earth. The
code before this patch uses shmat(). Samba ages ago has developed a good
abstraction of shared memory: It's called tdb.

The main reason why I started this is that I have a request to become
more flexible with profiling data. Samba should be able to collect data
per share or per user, something which is almost impossible to do with
a fixed structure. My idea is to for example install a profile area per
share and every second marshall this into one tdb record indexed by share
name. smbstatus -P would then also collect the data and either aggregate
them or put them into individual per-share statistics. This flexibility
in the data model is not really possible with one fixed structure.

But isn't it slow?

Well, I don't think so. I can't really prove it, but I do believe that on large
boxes atomically incrementing a shared memory value for every SMB does show up
due to NUMA effects. With this patch the hot code path is completely
process-local. Once a second every smbd writes into a central tdb, this of
course does atomic operations. But it's once a second, not on every SMB2 read.

There's two places where I would like to improve things: With the current code
all smbds wake up once a second. With 10,000 potentially idle smbds this will
become noticable. That's why the current only starts the timer when something has
changed.

The second place is the tdb traverse: Right now traverse is blocking in the
sense that when it has to switch hash chains it will block. With mutexes, this
means a syscall. I have a traverse light in mind that works as follows: It
assumes a locked hash chain and then walks the complete chain in one run
without unlocking in between. This way the caller can do nonblocking locks in
the first round and only do blocking locks in a second round. Also, a lot of
syscall overhead will vanish. This way smbstatus -P will have almost zero
impact on normal operations.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
9 years agos3:smbprofile: specify SMBPROFILE_STATS_SECTION_START() with name vs. display[name]
Stefan Metzmacher [Fri, 28 Nov 2014 08:33:13 +0000 (09:33 +0100)]
s3:smbprofile: specify SMBPROFILE_STATS_SECTION_START() with name vs. display[name]

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
9 years agoImplement TestCase.assertIsNotNone for python < 2.7.
Jelmer Vernooij [Thu, 5 Feb 2015 21:04:44 +0000 (22:04 +0100)]
Implement TestCase.assertIsNotNone for python < 2.7.

Change-Id: Ieaefdc77495e27bad791075d985a70908e9be1ad
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Mar  6 07:11:43 CET 2015 on sn-devel-104

9 years agoImplement TestCase.assertIn for older versions of Python.
Jelmer Vernooij [Thu, 5 Feb 2015 18:57:26 +0000 (19:57 +0100)]
Implement TestCase.assertIn for older versions of Python.

Change-Id: I17d855166b439c0bd9344a17a454ea5bc6e057aa
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoImplement assertIsNone for Python < 2.7.
Jelmer Vernooij [Thu, 5 Feb 2015 09:25:53 +0000 (10:25 +0100)]
Implement assertIsNone for Python < 2.7.

Change-Id: I3937acb16ca0c5430b70f0af305997878da53c37
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoHandle skips when running on python2.6.
Jelmer Vernooij [Wed, 4 Feb 2015 15:40:29 +0000 (16:40 +0100)]
Handle skips when running on python2.6.

Change-Id: I8b0a15760a72f41800d23150232c2b0e59e32c32
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove another call to addUnexpectedSuccess with too many arguments.
Jelmer Vernooij [Sun, 1 Feb 2015 22:20:42 +0000 (23:20 +0100)]
Remove another call to addUnexpectedSuccess with too many arguments.

Change-Id: I5f1917e74ffd57b5ae228231c27fbdf70de2992f
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRun cleanup after tearDown, for consistency with Python >= 2.7.
Jelmer Vernooij [Fri, 30 Jan 2015 01:16:05 +0000 (02:16 +0100)]
Run cleanup after tearDown, for consistency with Python >= 2.7.

Change-Id: Ic3ce975e3b2e4b30e07643efb4496ebf36a93284
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoTestCase.addUnexpectedSuccess doesn't take an error.
Jelmer Vernooij [Fri, 30 Jan 2015 01:07:17 +0000 (02:07 +0100)]
TestCase.addUnexpectedSuccess doesn't take an error.

Change-Id: I90f7dd225d9ed3cbc515292de9a37a816ac0639f
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse samba TestCase so we get all compatibility functions on Python < 2.7.
Jelmer Vernooij [Fri, 30 Jan 2015 01:06:33 +0000 (02:06 +0100)]
Use samba TestCase so we get all compatibility functions on Python < 2.7.

Change-Id: Iba87e3c8fa9331c4d5438ab60a8385379da634d7
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoProvide TestCase.assertIsInstance for python < 2.7.
Jelmer Vernooij [Wed, 28 Jan 2015 22:17:13 +0000 (23:17 +0100)]
Provide TestCase.assertIsInstance for python < 2.7.

Change-Id: Id6d3c8a7dc56cb560eccc3db897a83c638dec7a6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse Samba TestCase class, as the python 2.6 one doesn't have assertIs, assertIsInstan...
Jelmer Vernooij [Wed, 28 Jan 2015 21:17:41 +0000 (22:17 +0100)]
Use Samba TestCase class, as the python 2.6 one doesn't have assertIs, assertIsInstance or addCleanup.

Change-Id: I3daeffade0dac9795f61f91ee0da35fee0143a38
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAdd replacement addCleanup.
Jelmer Vernooij [Tue, 27 Jan 2015 02:44:10 +0000 (03:44 +0100)]
Add replacement addCleanup.

Change-Id: Ie85756effde344fc4cc9b693c4a28611ea091677
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAdd custom implementations of TestCase.assertIs and TestCase.assertIsNot, for Python2.6.
Jelmer Vernooij [Tue, 27 Jan 2015 02:40:34 +0000 (03:40 +0100)]
Add custom implementations of TestCase.assertIs and TestCase.assertIsNot, for Python2.6.

Change-Id: I3b806abdaf9540b7c39c961c179c2d2b15d327fe
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoFix use of TestCase.skipTest on python2.6 now that we no longer use testtools.
Jelmer Vernooij [Mon, 15 Dec 2014 17:35:24 +0000 (17:35 +0000)]
Fix use of TestCase.skipTest on python2.6 now that we no longer use testtools.

Change-Id: I630e4073bf1553dfc77e9fe7e843ee8b71907683
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoBuild python-ntdb bindings if ntdb was found but python-ntdb was not.
Jelmer Vernooij [Mon, 15 Dec 2014 17:33:49 +0000 (17:33 +0000)]
Build python-ntdb bindings if ntdb was found but python-ntdb was not.

Change-Id: I54c248effa63fe65e2bef0d41535d8eec0ef28c0
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoDrop support for failfast mode, rather than adding support for it everywhere.
Jelmer Vernooij [Mon, 15 Dec 2014 14:18:30 +0000 (14:18 +0000)]
Drop support for failfast mode, rather than adding support for it everywhere.

Change-Id: I4d6070a0e3b89d5e390f84754dddba9ec17ddf21
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoFix use of iso8601.Utc.
Jelmer Vernooij [Mon, 15 Dec 2014 00:51:32 +0000 (00:51 +0000)]
Fix use of iso8601.Utc.

Change-Id: Id592571a173eff36e2fb9b395f61a6fb53d580e6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoSet failfast property for test reporters that need it.
Jelmer Vernooij [Mon, 15 Dec 2014 00:51:16 +0000 (00:51 +0000)]
Set failfast property for test reporters that need it.

Change-Id: Ibd632b9f569c23e60bcd13bcff805e367dd2e71c
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove 'external' python module support code - use the third_party directory instead.
Jelmer Vernooij [Sun, 14 Dec 2014 20:31:45 +0000 (20:31 +0000)]
Remove 'external' python module support code - use the third_party directory instead.

Change-Id: I2f5053bc5a42d3dfe71f5bd027eb6ead7d1b9752
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove bundled but unused mimeparse.
Jelmer Vernooij [Sun, 14 Dec 2014 20:30:52 +0000 (20:30 +0000)]
Remove bundled but unused mimeparse.

Change-Id: I245607c0d27dbeae638f2f50c3b4d560eb9b70f8
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove unused bundled python-extras module.
Jelmer Vernooij [Sun, 14 Dec 2014 20:29:49 +0000 (20:29 +0000)]
Remove unused bundled python-extras module.

Change-Id: I6df0561ff4059c827d545d60a0865e17e9fefcf0
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove bundled testtools.
Jelmer Vernooij [Sun, 14 Dec 2014 20:29:12 +0000 (20:29 +0000)]
Remove bundled testtools.

Change-Id: Ic6ddb352e403c9591cbe4ad3fd36758ffcc2ddb9
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove bundled subunit.
Jelmer Vernooij [Sun, 14 Dec 2014 20:28:25 +0000 (20:28 +0000)]
Remove bundled subunit.

Change-Id: I18e19c3817de6f97fe2a9fb1b7faa4f8a0d27649
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRemove unnecessary python path updates for bundled subunit/testtools.
Jelmer Vernooij [Sun, 14 Dec 2014 20:27:42 +0000 (20:27 +0000)]
Remove unnecessary python path updates for bundled subunit/testtools.

Change-Id: Idb40fcb564455f16608ea991b086e41e22ae51e3
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoSupport using third party iso8601 module if system doesn't provide one.
Jelmer Vernooij [Sun, 14 Dec 2014 20:27:03 +0000 (20:27 +0000)]
Support using third party iso8601 module if system doesn't provide one.

Change-Id: I5d035738d244d66d33788636c8ee8b322c227a0e
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoBundle pyiso8601 for iso8601 time/date manipulation.
Jelmer Vernooij [Sun, 14 Dec 2014 20:26:19 +0000 (20:26 +0000)]
Bundle pyiso8601 for iso8601 time/date manipulation.

(corrected lib/update-external.sh by Andrew Bartlett)

Change-Id: I0f992b949b1717635ff26fa0db6073675cce4ad7
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
9 years agoImport UTC definition from utc8601 module.
Jelmer Vernooij [Sun, 14 Dec 2014 20:17:03 +0000 (20:17 +0000)]
Import UTC definition from utc8601 module.

Change-Id: I3ccd81090c4721b161aff272100aa71bc2f17055
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agosubunithelper: Fix progress support.
Jelmer Vernooij [Sun, 14 Dec 2014 20:10:20 +0000 (20:10 +0000)]
subunithelper: Fix progress support.

Change-Id: I5dd2ca0f3bc02821d5c9e1dc878bba577667d162
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoRename TestSkipped to Skiptest, consistent with Python 2.7.
Jelmer Vernooij [Sun, 14 Dec 2014 20:03:28 +0000 (20:03 +0000)]
Rename TestSkipped to Skiptest, consistent with Python 2.7.

Change-Id: I023df54363328333f1cb6c3ae3c1a406befa8f7b
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAvoid importing TestCase and TestSkipped from testtools.
Jelmer Vernooij [Sun, 14 Dec 2014 19:59:13 +0000 (19:59 +0000)]
Avoid importing TestCase and TestSkipped from testtools.

Change-Id: I34488ddf253decd336a67a8634e7039096bdd160
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse iso8601 from the system, rather than the one bundled with subunit.
Jelmer Vernooij [Sun, 14 Dec 2014 19:55:55 +0000 (19:55 +0000)]
Use iso8601 from the system, rather than the one bundled with subunit.

Change-Id: I681bf79eb9ebe45b6972b3783c8e799eb612400b
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoformat-subunit: Remove import of unnecessary third party modules testtools and subunit.
Jelmer Vernooij [Sun, 14 Dec 2014 19:38:48 +0000 (19:38 +0000)]
format-subunit: Remove import of unnecessary third party modules testtools and subunit.

Change-Id: I3403ceacf8bbdf075c1c540081f7c3e82f4751bc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agofilter-subunit: Remove import of unnecessary third party modules testtools and subunit.
Jelmer Vernooij [Sun, 14 Dec 2014 19:37:46 +0000 (19:37 +0000)]
filter-subunit: Remove import of unnecessary third party modules testtools and subunit.

Change-Id: I6ed0c560c18b4001c7adb9af6f67535640a1b374
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agotests/sam: Remove unnecessary calls for third party module imports.
Jelmer Vernooij [Sun, 14 Dec 2014 19:36:32 +0000 (19:36 +0000)]
tests/sam: Remove unnecessary calls for third party module imports.

Change-Id: Iaa1af59005eaee7ea79f3260b250a2c948e07532
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoshow_test_time: Use system subunit.
Jelmer Vernooij [Sun, 14 Dec 2014 19:34:14 +0000 (19:34 +0000)]
show_test_time: Use system subunit.

Change-Id: I7d799b5f9d6066d988aa2e101e0fe7b6efe74aea
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agotest_samba3dump: Use Samba subunit emitter.
Jelmer Vernooij [Sun, 14 Dec 2014 19:32:23 +0000 (19:32 +0000)]
test_samba3dump: Use Samba subunit emitter.

Change-Id: Ie9a115d131624bfc68e6f40822acade70d145735
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agotest_duplicate_symbol: Use Samba subunit emitter.
Jelmer Vernooij [Sun, 14 Dec 2014 19:31:48 +0000 (19:31 +0000)]
test_duplicate_symbol: Use Samba subunit emitter.

Change-Id: I280495706ff460674244183103306ca717c419a8
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoSet default testRunner rather than requiring the user pass it in.
Jelmer Vernooij [Sun, 14 Dec 2014 19:25:55 +0000 (19:25 +0000)]
Set default testRunner rather than requiring the user pass it in.

Change-Id: I8b5a5925030049975a83b090e5c7b76d5245c07d
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAdd basic tap2subunit converter, rather than relying on the one from subunit-tools.
Jelmer Vernooij [Sun, 14 Dec 2014 19:25:12 +0000 (19:25 +0000)]
Add basic tap2subunit converter, rather than relying on the one from subunit-tools.

Change-Id: I39ec5ec68c7c3c9d329d8f1a8ce01445b85c7ab8
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoInline outputting of subunit in libtorture.
Jelmer Vernooij [Sat, 13 Dec 2014 22:11:06 +0000 (22:11 +0000)]
Inline outputting of subunit in libtorture.

Change-Id: I2c7045c530183a6961cb253540579312c2767330
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoFix handling of unexpected failures in subunithelper.
Jelmer Vernooij [Sat, 13 Dec 2014 21:37:51 +0000 (21:37 +0000)]
Fix handling of unexpected failures in subunithelper.

Change-Id: I0da9fcec4a54c43c171b76bb9015ea84389c9bc6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse samba.subunit in selftest.subunithelper, except for iso8601.
Jelmer Vernooij [Thu, 11 Dec 2014 02:30:49 +0000 (02:30 +0000)]
Use samba.subunit in selftest.subunithelper, except for iso8601.

Change-Id: Iec43e0368db91dbe981b39ac8388b50c1eafee0c
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAdd RemoteTestCase and RemoteError to samba.subunit.
Jelmer Vernooij [Thu, 11 Dec 2014 02:26:54 +0000 (02:26 +0000)]
Add RemoteTestCase and RemoteError to samba.subunit.

Change-Id: Ib3946cf4eae69f53270a299660f6029290d3791a
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse samba.subunit in selftest/selftest.py.
Jelmer Vernooij [Thu, 11 Dec 2014 02:10:53 +0000 (02:10 +0000)]
Use samba.subunit in selftest/selftest.py.

Change-Id: I804c16cdfcfddc5643a5af158ee62c4ddf478979
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse Samba-only subunit module in selftest/tests/.
Jelmer Vernooij [Thu, 11 Dec 2014 01:55:16 +0000 (01:55 +0000)]
Use Samba-only subunit module in selftest/tests/.

Change-Id: I48c61f975c1fa49f6e244ad39dd720fe507db45b
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoFix copyright headers for python/samba/subunit.
Jelmer Vernooij [Thu, 11 Dec 2014 01:33:00 +0000 (01:33 +0000)]
Fix copyright headers for python/samba/subunit.

Change-Id: I5b554051f23f31d20b4f4325debcd6717ba8369e
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoUse samba.subunit.run to run subunit tests.
Jelmer Vernooij [Thu, 11 Dec 2014 01:16:38 +0000 (01:16 +0000)]
Use samba.subunit.run to run subunit tests.

Change-Id: Id9bdd33b7ac5e4db40ab8bef4dbe0f04c36d8da7
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agosubunitrun: Update instructions for running subunit tests.
Jelmer Vernooij [Thu, 11 Dec 2014 01:14:08 +0000 (01:14 +0000)]
subunitrun: Update instructions for running subunit tests.

Change-Id: Icaf472198e93e283db2ae6ed99fd7ceae037af87
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agosubunitrun: Use new samba.subunit.run module.
Jelmer Vernooij [Thu, 11 Dec 2014 01:12:11 +0000 (01:12 +0000)]
subunitrun: Use new samba.subunit.run module.

Change-Id: I4a4d2237ec9ef090bf95a0ea57285610047451e5
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoselftest/tests/*.py: remove use of testtools.
Jelmer Vernooij [Thu, 11 Dec 2014 01:11:41 +0000 (01:11 +0000)]
selftest/tests/*.py: remove use of testtools.

Change-Id: Ia692c6b3037b7d867310c3793980f9f953d31680
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoAdd simple subunit runner outputting subunit v1.
Jelmer Vernooij [Thu, 11 Dec 2014 01:07:36 +0000 (01:07 +0000)]
Add simple subunit runner outputting subunit v1.

This is a short module (< 1k lines) that removes the need to
depend on subunit, testtools, extras and mimeparse. It is
based on an extract from testtools and subunit.

Change-Id: I0a4f3060b25f7bde602a07ed6bef71c8196fca64
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
9 years agoctdb-tests: Check for readable, not executable, script
Martin Schwenke [Fri, 6 Mar 2015 00:36:18 +0000 (11:36 +1100)]
ctdb-tests: Check for readable, not executable, script

Scripts in eventscript unit tests are run under an explicitly
specified shell so they do not need to be executable.  Checking that
the script is executable breaks on scripts that are installed without
the execute bit set, such as disabled eventscripts.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Mar  6 04:40:07 CET 2015 on sn-devel-104

9 years agoperfcount: Fix CID 1035494 Out-of-bounds read
Volker Lendecke [Thu, 5 Mar 2015 10:12:38 +0000 (11:12 +0100)]
perfcount: Fix CID 1035494 Out-of-bounds read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Thu Mar  5 18:28:44 CET 2015 on sn-devel-104

9 years agoperfcount: Fix CID 1035493 Out-of-bounds read
Volker Lendecke [Thu, 5 Mar 2015 10:11:59 +0000 (11:11 +0100)]
perfcount: Fix CID 1035493 Out-of-bounds read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
9 years agoperfcount: Fix CID 1035492 Out-of-bounds read
Volker Lendecke [Thu, 5 Mar 2015 10:10:35 +0000 (11:10 +0100)]
perfcount: Fix CID 1035492 Out-of-bounds read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
9 years agoperfcount: Fix CID 1274043 Division or modulo by zero
Volker Lendecke [Thu, 5 Mar 2015 10:07:56 +0000 (11:07 +0100)]
perfcount: Fix CID 1274043 Division or modulo by zero

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
9 years agoprinting: increse log level for unreachable cups servers
Björn Jacke [Wed, 4 Mar 2015 09:15:10 +0000 (10:15 +0100)]
printing: increse log level for unreachable cups servers

this annoying messages hitting the logs very often on non-cups servers by
default in log level 0 otherwise.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11133

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Mar  5 14:38:42 CET 2015 on sn-devel-104

9 years agoctdb-locking: Back-off from logging every 10 seconds
Amitay Isaacs [Wed, 4 Mar 2015 04:36:05 +0000 (15:36 +1100)]
ctdb-locking: Back-off from logging every 10 seconds

If ctdb_lock_helper cannot get a lock within 10 seconds, ctdb daemon
logs a message and invokes an external debug script.  This is repeated
every 10 seconds.

In case of a contention or on a loaded system, there can be multiple
ctdb_lock_helper processes waiting to get lock on record(s).  For each
lock request taking longer, ctdb daemon will flood the log every
10 seconds.  Instead of logging aggressively every 10 seconds, relax
logging to every 100s and 1000s if the elapsed time has exceeded 100s
and 1000s respectively.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Mar  5 12:06:44 CET 2015 on sn-devel-104

9 years agoctdb-tests: Correctly cascade test failures from the end of pipes
Amitay Isaacs [Thu, 5 Mar 2015 02:11:46 +0000 (13:11 +1100)]
ctdb-tests: Correctly cascade test failures from the end of pipes

Some eventscript unit test failures get lost because _passed=false is
set in the tail of a pipe.  Add a new function test_fail() and call it
when necessary to ensure the value of _passed is set correctly.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Mar  5 07:16:54 CET 2015 on sn-devel-104

9 years agoctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly
Amitay Isaacs [Thu, 5 Mar 2015 02:10:32 +0000 (13:10 +1100)]
ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly

statd-callout tries to remove global files from /var/lib/nfs/statd and
this causes errors in tests.  Add an rm stub that ignores attempts to
remove these files but invokes /bin/rm for anything else.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agorpc_server: Fix CID 1273433 Unused value
Volker Lendecke [Wed, 4 Mar 2015 10:08:36 +0000 (11:08 +0100)]
rpc_server: Fix CID 1273433 Unused value

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar  4 23:29:01 CET 2015 on sn-devel-104

9 years agorpc_server: Fix CID 1035535 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:47:03 +0000 (10:47 +0100)]
rpc_server: Fix CID 1035535 Uninitialized scalar variable

I believe this can't happen, but better be safe than sorry

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Wed Mar  4 17:14:53 CET 2015 on sn-devel-104

9 years agorpc_server: Fix CID 1035534 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:47:03 +0000 (10:47 +0100)]
rpc_server: Fix CID 1035534 Uninitialized scalar variable

I believe this can't happen, but better be safe than sorry

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobackupkey: Remove an unused variable
Volker Lendecke [Wed, 4 Mar 2015 09:36:40 +0000 (10:36 +0100)]
backupkey: Remove an unused variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobackupkey: Fix CID 1273293 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:35:47 +0000 (10:35 +0100)]
backupkey: Fix CID 1273293 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobackupkey: Fix a memleak
Volker Lendecke [Wed, 4 Mar 2015 09:33:57 +0000 (10:33 +0100)]
backupkey: Fix a memleak

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobackupkey: Simplify get_lsa_secret
Volker Lendecke [Wed, 4 Mar 2015 09:33:38 +0000 (10:33 +0100)]
backupkey: Simplify get_lsa_secret

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobackupkey: Slightly simplify bkrp_do_retrieve_server_wrap_key
Volker Lendecke [Wed, 4 Mar 2015 09:29:53 +0000 (10:29 +0100)]
backupkey: Slightly simplify bkrp_do_retrieve_server_wrap_key

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agowinbind: Fix CID 1273294 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:28:20 +0000 (10:28 +0100)]
winbind: Fix CID 1273294 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agowinbind: Fix CID 1273295 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:22:48 +0000 (10:22 +0100)]
winbind: Fix CID 1273295 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolibads: Fix CID 1273305 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:09:51 +0000 (10:09 +0100)]
libads: Fix CID 1273305 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolibads: Fix CID 1273306 Uninitialized scalar variable
Volker Lendecke [Wed, 4 Mar 2015 09:09:18 +0000 (10:09 +0100)]
libads: Fix CID 1273306 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolib: Fix CID 1273292 Uninitialized pointer read
Volker Lendecke [Wed, 4 Mar 2015 09:00:29 +0000 (10:00 +0100)]
lib: Fix CID 1273292 Uninitialized pointer read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolib: Fix CID 1273056 Negative array index read
Volker Lendecke [Wed, 4 Mar 2015 08:49:18 +0000 (09:49 +0100)]
lib: Fix CID 1273056 Negative array index read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolib: Fix CID 1128561 Pointer to local outside scope
Volker Lendecke [Wed, 4 Mar 2015 08:43:19 +0000 (09:43 +0100)]
lib: Fix CID 1128561 Pointer to local outside scope

This is not strictly a bug, but it is confusing enough to justify a small patch
I guess.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agoFix whitespace
Volker Lendecke [Wed, 4 Mar 2015 08:43:09 +0000 (09:43 +0100)]
Fix whitespace

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agolib: Fix CID 1128552 Buffer not null terminated
Volker Lendecke [Wed, 4 Mar 2015 08:38:52 +0000 (09:38 +0100)]
lib: Fix CID 1128552 Buffer not null terminated

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agobuild:wafadmin: fix use of spaces instead of tabs.
Michael Adam [Tue, 3 Mar 2015 12:33:10 +0000 (13:33 +0100)]
build:wafadmin: fix use of spaces instead of tabs.

Indentation should not be a mixture of tabs and spaces.
Waf uses tabs.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>