samba.git
11 months agoctdb:tools: Use correct C99 initializer for ltdb_header
Andreas Schneider [Mon, 14 Jan 2019 11:07:40 +0000 (12:07 +0100)]
ctdb:tools: Use correct C99 initializer for ltdb_header

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoctdb:common: Use C99 initializer for 'struct ifreq'
Andreas Schneider [Thu, 13 Dec 2018 09:57:55 +0000 (10:57 +0100)]
ctdb:common: Use C99 initializer for 'struct ifreq'

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoctdb: Use C99 initializer for last element of tunables
Andreas Schneider [Thu, 13 Dec 2018 09:34:11 +0000 (10:34 +0100)]
ctdb: Use C99 initializer for last element of tunables

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoauth:gensec: Use C99 initializer in schannel
Andreas Schneider [Mon, 14 Jan 2019 12:44:40 +0000 (13:44 +0100)]
auth:gensec: Use C99 initializer in schannel

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoauth:creds: Use C99 initializer for PyMethodDef
Andreas Schneider [Thu, 13 Dec 2018 10:20:41 +0000 (11:20 +0100)]
auth:creds: Use C99 initializer for PyMethodDef

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:pyparam: Use C99 initializer for PyGetSetDef
Andreas Schneider [Thu, 13 Dec 2018 10:10:40 +0000 (11:10 +0100)]
s4:pyparam: Use C99 initializer for PyGetSetDef

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:lib: Use C99 initializer for PyGetSetDef in pymessaging
Andreas Schneider [Thu, 13 Dec 2018 11:13:04 +0000 (12:13 +0100)]
s4:lib: Use C99 initializer for PyGetSetDef in pymessaging

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:librpc: Use C99 initializer for PyGetSetDef in pyrpc
Andreas Schneider [Thu, 13 Dec 2018 10:38:43 +0000 (11:38 +0100)]
s4:librpc: Use C99 initializer for PyGetSetDef in pyrpc

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:passdb: Use C99 initializer for PyGetSetDef in py_passdb
Andreas Schneider [Tue, 8 Jan 2019 16:20:43 +0000 (17:20 +0100)]
s3:passdb: Use C99 initializer for PyGetSetDef in py_passdb

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agolib:ldb: Use C99 initializer for PyGetSetDef in pyldb
Andreas Schneider [Thu, 13 Dec 2018 10:34:37 +0000 (11:34 +0100)]
lib:ldb: Use C99 initializer for PyGetSetDef in pyldb

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agolib:tdb: Use C99 initializer for PyGetSetDef in pytdb
Andreas Schneider [Thu, 13 Dec 2018 10:29:09 +0000 (11:29 +0100)]
lib:tdb: Use C99 initializer for PyGetSetDef in pytdb

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_shutdown
Andreas Schneider [Mon, 14 Jan 2019 08:51:05 +0000 (09:51 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_shutdown

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_epmapper
Andreas Schneider [Mon, 14 Jan 2019 08:48:06 +0000 (09:48 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_epmapper

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_test
Andreas Schneider [Mon, 14 Jan 2019 08:42:17 +0000 (09:42 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_test

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_eventlog
Andreas Schneider [Fri, 11 Jan 2019 13:57:21 +0000 (14:57 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_eventlog

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_witness
Andreas Schneider [Fri, 11 Jan 2019 13:47:02 +0000 (14:47 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_witness

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in rpcclient
Andreas Schneider [Fri, 11 Jan 2019 13:16:11 +0000 (14:16 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in rpcclient

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_lsarpc
Andreas Schneider [Fri, 11 Jan 2019 13:05:57 +0000 (14:05 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_lsarpc

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_samr
Andreas Schneider [Fri, 11 Jan 2019 12:43:24 +0000 (13:43 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_samr

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_clusapi
Andreas Schneider [Wed, 9 Jan 2019 15:31:51 +0000 (16:31 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_clusapi

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_ntsvcvs
Andreas Schneider [Wed, 9 Jan 2019 15:29:06 +0000 (16:29 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_ntsvcvs

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_iremotewinspool
Andreas Schneider [Wed, 9 Jan 2019 15:21:34 +0000 (16:21 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_iremotewinspool

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_winreg
Andreas Schneider [Wed, 9 Jan 2019 14:16:35 +0000 (15:16 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_winreg

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_fss
Andreas Schneider [Wed, 9 Jan 2019 14:15:18 +0000 (15:15 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_fss

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_wkssvc
Andreas Schneider [Wed, 9 Jan 2019 14:14:05 +0000 (15:14 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_wkssvc

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup
Andreas Schneider [Wed, 9 Jan 2019 14:12:23 +0000 (15:12 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_dssetup

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_drsuapi
Andreas Schneider [Wed, 9 Jan 2019 14:11:01 +0000 (15:11 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_drsuapi

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_echo
Andreas Schneider [Wed, 9 Jan 2019 12:27:03 +0000 (13:27 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_echo

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_srvsvc
Andreas Schneider [Tue, 8 Jan 2019 17:06:43 +0000 (18:06 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_srvsvc

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_netlogon
Andreas Schneider [Tue, 8 Jan 2019 17:01:42 +0000 (18:01 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_netlogon

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_dfs
Andreas Schneider [Tue, 8 Jan 2019 16:57:26 +0000 (17:57 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_dfs

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for cmd_set in cmd_spoolss
Andreas Schneider [Tue, 8 Jan 2019 16:50:20 +0000 (17:50 +0100)]
s3:rpcclient: Use C99 initializer for cmd_set in cmd_spoolss

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:torture: Use C99 initializer for cmd_set in vfstest
Andreas Schneider [Tue, 8 Jan 2019 16:11:57 +0000 (17:11 +0100)]
s3:torture: Use C99 initializer for cmd_set in vfstest

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:torture: Use C99 initializer for cmd_set in cmd_vfs
Andreas Schneider [Tue, 8 Jan 2019 16:09:11 +0000 (17:09 +0100)]
s3:torture: Use C99 initializer for cmd_set in cmd_vfs

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:lib: Use C99 initializer for poptOption in popt_credentials
Andreas Schneider [Thu, 13 Dec 2018 09:46:33 +0000 (10:46 +0100)]
s4:lib: Use C99 initializer for poptOption in popt_credentials

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:lib: Use C99 initializer for poptOption in popt_common
Andreas Schneider [Thu, 13 Dec 2018 09:41:51 +0000 (10:41 +0100)]
s4:lib: Use C99 initializer for poptOption in popt_common

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:client: Use C99 initializer for poptOption in cifsdd
Andreas Schneider [Mon, 14 Jan 2019 17:05:34 +0000 (18:05 +0100)]
s4:client: Use C99 initializer for poptOption in cifsdd

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:client: Use C99 initializer for poptOption in client
Andreas Schneider [Tue, 8 Jan 2019 10:43:39 +0000 (11:43 +0100)]
s4:client: Use C99 initializer for poptOption in client

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos4:smbd: Use C99 initializer for poptOption in server
Andreas Schneider [Thu, 13 Dec 2018 10:49:35 +0000 (11:49 +0100)]
s4:smbd: Use C99 initializer for poptOption in server

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in mvxattr
Andreas Schneider [Mon, 14 Jan 2019 10:08:11 +0000 (11:08 +0100)]
s3:utils: Use C99 initializer for poptOption in mvxattr

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:nmbd: Use C99 initializer for poptOption in nmbd
Andreas Schneider [Mon, 14 Jan 2019 09:56:08 +0000 (10:56 +0100)]
s3:nmbd: Use C99 initializer for poptOption in nmbd

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:netapi: Use C99 initializer for poptOption in netapi example
Andreas Schneider [Thu, 13 Dec 2018 09:19:07 +0000 (10:19 +0100)]
s3:netapi: Use C99 initializer for poptOption in netapi example

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:lib: Use C99 initializer for poptOption in popt_common_cmdline
Andreas Schneider [Thu, 13 Dec 2018 10:02:48 +0000 (11:02 +0100)]
s3:lib: Use C99 initializer for poptOption in popt_common_cmdline

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:lib: Use C99 initializer for poptOption in popt_common
Andreas Schneider [Thu, 13 Dec 2018 09:31:46 +0000 (10:31 +0100)]
s3:lib: Use C99 initializer for poptOption in popt_common

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:lib: Use C99 initializer for poptOption in netapi nltest
Andreas Schneider [Tue, 8 Jan 2019 16:37:24 +0000 (17:37 +0100)]
s3:lib: Use C99 initializer for poptOption in netapi nltest

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:lib: Use C99 initializer for poptOption in netapi common test
Andreas Schneider [Tue, 8 Jan 2019 16:32:53 +0000 (17:32 +0100)]
s3:lib: Use C99 initializer for poptOption in netapi common test

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:lib: Use POPT_TABLEEND for last element of poptOption
Andreas Schneider [Tue, 8 Jan 2019 15:59:23 +0000 (16:59 +0100)]
s3:lib: Use POPT_TABLEEND for last element of poptOption

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:winbind: Use C99 initializer for poptOption in winbindd
Andreas Schneider [Tue, 8 Jan 2019 16:24:41 +0000 (17:24 +0100)]
s3:winbind: Use C99 initializer for poptOption in winbindd

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:param: Use C99 initializer for poptOption in test_lp_load
Andreas Schneider [Tue, 8 Jan 2019 16:14:28 +0000 (17:14 +0100)]
s3:param: Use C99 initializer for poptOption in test_lp_load

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in smbget
Andreas Schneider [Fri, 11 Jan 2019 14:03:54 +0000 (15:03 +0100)]
s3:utils: Use C99 initializer for poptOption in smbget

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in smbtree
Andreas Schneider [Fri, 11 Jan 2019 13:53:36 +0000 (14:53 +0100)]
s3:utils: Use C99 initializer for poptOption in smbtree

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in net
Andreas Schneider [Mon, 14 Jan 2019 10:04:25 +0000 (11:04 +0100)]
s3:utils: Use C99 initializer for poptOption in net

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in log2pcaphex
Andreas Schneider [Mon, 14 Jan 2019 09:47:44 +0000 (10:47 +0100)]
s3:utils: Use C99 initializer for poptOption in log2pcaphex

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in testparm
Andreas Schneider [Mon, 14 Jan 2019 09:46:27 +0000 (10:46 +0100)]
s3:utils: Use C99 initializer for poptOption in testparm

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in smbcquotas
Andreas Schneider [Mon, 14 Jan 2019 09:43:48 +0000 (10:43 +0100)]
s3:utils: Use C99 initializer for poptOption in smbcquotas

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in ntlm_auth
Andreas Schneider [Mon, 14 Jan 2019 09:00:04 +0000 (10:00 +0100)]
s3:utils: Use C99 initializer for poptOption in ntlm_auth

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in sharesec
Andreas Schneider [Mon, 14 Jan 2019 08:56:22 +0000 (09:56 +0100)]
s3:utils: Use C99 initializer for poptOption in sharesec

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in profiles
Andreas Schneider [Mon, 14 Jan 2019 08:52:48 +0000 (09:52 +0100)]
s3:utils: Use C99 initializer for poptOption in profiles

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in nmblookup
Andreas Schneider [Fri, 11 Jan 2019 15:25:30 +0000 (16:25 +0100)]
s3:utils: Use C99 initializer for poptOption in nmblookup

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in smbcacls
Andreas Schneider [Fri, 11 Jan 2019 14:26:38 +0000 (15:26 +0100)]
s3:utils: Use C99 initializer for poptOption in smbcacls

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:utils: Use C99 initializer for poptOption in smbstatus
Andreas Schneider [Tue, 8 Jan 2019 11:21:36 +0000 (12:21 +0100)]
s3:utils: Use C99 initializer for poptOption in smbstatus

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:torture: Use C99 initializer for poptOption in vfstest
Andreas Schneider [Tue, 8 Jan 2019 16:07:34 +0000 (17:07 +0100)]
s3:torture: Use C99 initializer for poptOption in vfstest

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:smbd: Use C99 initializer for poptOption in smbd server
Andreas Schneider [Tue, 8 Jan 2019 11:15:04 +0000 (12:15 +0100)]
s3:smbd: Use C99 initializer for poptOption in smbd server

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:rpcclient: Use C99 initializer for poptOption in cmd_witness
Andreas Schneider [Fri, 11 Jan 2019 14:14:09 +0000 (15:14 +0100)]
s3:rpcclient: Use C99 initializer for poptOption in cmd_witness

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agos3:client: Use C99 initializer for poptOption in smbclient
Andreas Schneider [Tue, 8 Jan 2019 11:18:23 +0000 (12:18 +0100)]
s3:client: Use C99 initializer for poptOption in smbclient

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agonsswitch: Use C99 initializer for poptOption in wbinfo
Andreas Schneider [Thu, 13 Dec 2018 11:09:43 +0000 (12:09 +0100)]
nsswitch: Use C99 initializer for poptOption in wbinfo

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agolibcli:nbt: Use C99 initializer for poptOption in nmblookup
Andreas Schneider [Tue, 8 Jan 2019 10:55:20 +0000 (11:55 +0100)]
libcli:nbt: Use C99 initializer for poptOption in nmblookup

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agolib:texpect: Use C99 initializer for poptOption in texpect
Andreas Schneider [Thu, 13 Dec 2018 10:23:00 +0000 (11:23 +0100)]
lib:texpect: Use C99 initializer for poptOption in texpect

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoexamples: Use C99 initializer for poptOption in testacl
Andreas Schneider [Tue, 8 Jan 2019 16:30:04 +0000 (17:30 +0100)]
examples: Use C99 initializer for poptOption in testacl

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoexamples: Reformat testacl libsmbclient example
Andreas Schneider [Tue, 8 Jan 2019 16:27:32 +0000 (17:27 +0100)]
examples: Reformat testacl libsmbclient example

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoctdb: Use C99 initializer for poptOption in test_options
Andreas Schneider [Thu, 13 Dec 2018 09:55:23 +0000 (10:55 +0100)]
ctdb: Use C99 initializer for poptOption in test_options

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agoctdb: Use C99 initializer for poptOption in ctdb tool
Andreas Schneider [Tue, 8 Jan 2019 10:59:31 +0000 (11:59 +0100)]
ctdb: Use C99 initializer for poptOption in ctdb tool

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
11 months agogitlab-ci: Use artifacts instead of after_script
Andreas Schneider [Tue, 20 Nov 2018 07:17:37 +0000 (08:17 +0100)]
gitlab-ci: Use artifacts instead of after_script

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Jan 26 22:16:38 CET 2019 on sn-devel-144

11 months agogitlab-ci: Move before and after script to shared template
Andreas Schneider [Tue, 20 Nov 2018 07:16:42 +0000 (08:16 +0100)]
gitlab-ci: Move before and after script to shared template

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agogitlab-ci: Move the image definition to the template
Andreas Schneider [Tue, 20 Nov 2018 07:15:02 +0000 (08:15 +0100)]
gitlab-ci: Move the image definition to the template

And in addition use variables for defining project and build env.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agos4:libcli: Remove (now unused) pysmb.c bindings
Tim Beale [Mon, 21 Jan 2019 22:18:50 +0000 (11:18 +1300)]
s4:libcli: Remove (now unused) pysmb.c bindings

The s4 SMB client bindings don't support SMBv2, so we've made the
decision to use the s3 SMB client bindings/library code instead.
Everything in the Samba codebase now uses the s3 bindings, and we'll
add a warning message to Samba v4.10 that the s4 bindings are
deprecated. This patch removes the unused s4 bindings completely for
the next (i.e. v4.11) release.

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

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jan 26 04:05:25 CET 2019 on sn-devel-144

11 months agos3:pylibsmb: Initialize pointers to NULL in new API code
Tim Beale [Wed, 16 Jan 2019 21:52:24 +0000 (10:52 +1300)]
s3:pylibsmb: Initialize pointers to NULL in new API code

Fix a few uninitialized pointers that managed to sneak through review.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
11 months agoFix tests when building with selftest but without developer
Isaac Boukris [Thu, 24 Jan 2019 10:31:27 +0000 (12:31 +0200)]
Fix tests when building with selftest but without developer

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Jan 25 21:57:57 CET 2019 on sn-devel-144

11 months agosmbd: uid: Don't crash if 'force group' is added to an existing share connection.
Jeremy Allison [Fri, 18 Jan 2019 22:24:30 +0000 (14:24 -0800)]
smbd: uid: Don't crash if 'force group' is added to an existing share connection.

smbd could crash if "force group" is added to a
share definition whilst an existing connection
to that share exists. In that case, don't change
the existing credentials for force group, only
do so for new connections.

Remove knownfail from regression test.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Jan 25 16:31:27 CET 2019 on sn-devel-144

11 months agos3: tests: Add regression test for smbd crash on share force group change with existi...
Jeremy Allison [Thu, 24 Jan 2019 18:15:56 +0000 (10:15 -0800)]
s3: tests: Add regression test for smbd crash on share force group change with existing connection.

Mark as known fail for now.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
11 months agos3:rpclient: rpclient help is not very helpful
Tim Beale [Tue, 22 Jan 2019 22:07:42 +0000 (11:07 +1300)]
s3:rpclient: rpclient help is not very helpful

The help was not telling me that there was a mandatory 'server' argument
that I needed to specify. After trying several different combinations
of parameters, I eventually had to run the tool in gdb to work out why
it was complaining.

This is the output I was getting:

bin/rpcclient -U$USERNAME%$PASSWORD -I $SERVER_IP
Usage: rpcclient [OPTION...]
  -c, --command=COMMANDS                 Execute semicolon separated
cmds
  -I, --dest-ip=IP                       Specify destination IP address
  -p, --port=PORT                        Specify port number
...

New help output is:

Usage: rpcclient [OPTION...] <server>
Options:
  -c, --command=COMMANDS                 Execute semicolon separated
cmds
...

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
11 months agoCI: move target "build_nt4" to private gitlab runners
Ralph Boehme [Wed, 23 Jan 2019 20:56:26 +0000 (21:56 +0100)]
CI: move target "build_nt4" to private gitlab runners

Fixes the mistake of 574fdfae59c6d7c97be48ca52ac9aefac82feccd that added
"build_nt4" to the public runners.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Autobuild-User(master): Tim Beale <timbeale@samba.org>
Autobuild-Date(master): Thu Jan 24 02:45:09 CET 2019 on sn-devel-144

11 months agos3-vfs: Use ENOATTR in errno comparison for getxattr
Anoop C S [Wed, 23 Jan 2019 10:10:43 +0000 (15:40 +0530)]
s3-vfs: Use ENOATTR in errno comparison for getxattr

* ENODATA is not defined in FreeBSD
* ENOATTR is defined to be a synonym for ENODATA in Linux
* In its absence Samba already defines ENOATTR to either
  ENODATA or ENOENT

Thus it is safe and correct to compare with ENOATTR rather
than ENODATA.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jan 23 21:59:10 CET 2019 on sn-devel-144

11 months agodocs-xml: Fix a typo in manpage for idmap_ad
SATOH Fumiyasu [Wed, 23 Jan 2019 02:29:51 +0000 (11:29 +0900)]
docs-xml: Fix a typo in manpage for idmap_ad

Signed-off-by: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
11 months agoCI: run "samba-nt4" as part of the free runners
Ralph Boehme [Mon, 21 Jan 2019 11:14:57 +0000 (12:14 +0100)]
CI: run "samba-nt4" as part of the free runners

Looks like this got lost in the py2/py3 reshuffling around
d01d85ccb255cbdfd3d379dfe0cd7ac58af7f284.

Signed-off-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jan 23 12:41:32 CET 2019 on sn-devel-144

11 months agotraffic: rm --scale-traffic default value
Joe Guo [Mon, 14 Jan 2019 22:06:29 +0000 (11:06 +1300)]
traffic: rm --scale-traffic default value

-S, --scale--traffic defaults to 1.0
when we switch to new option -T, both -T and -S are set, which raise an error:

script/traffic_replay #234: --scale-traffic and --packets-per-second are incompatible. Use one or the other.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Autobuild-User(master): Tim Beale <timbeale@samba.org>
Autobuild-Date(master): Wed Jan 23 03:09:41 CET 2019 on sn-devel-144

11 months agolibcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds.
Jeremy Allison [Tue, 22 Jan 2019 17:24:35 +0000 (09:24 -0800)]
libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds.

Should make us more robust when dealing with slow DNS servers.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jan 22 23:37:16 CET 2019 on sn-devel-144

11 months agos3-vfs: add glusterfs_fuse vfs module.
Günther Deschner [Thu, 17 Jan 2019 14:21:07 +0000 (15:21 +0100)]
s3-vfs: add glusterfs_fuse vfs module.

This module only implements the get_real_filename function by accessing
a distinct extended attribute that is available over a glusterfs fuse
mount.

By implementing this vfs function users of a glusterfs fuse mount
achieve a much better performance in create based workloads where samba
then can avoid trying multiple case folding options to detect the real
filename.

Patch is based on an initial patch provided by
Poornima G <pgurusid@redhat.com>

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Jan 22 18:37:56 CET 2019 on sn-devel-144

11 months agonetcmd: Try to improve domain backup error message
Tim Beale [Wed, 16 Jan 2019 20:41:21 +0000 (09:41 +1300)]
netcmd: Try to improve domain backup error message

I ran this command as non-root by mistake and didn't find the error
message particularly helpful. Tweak the error message so it reminds the
user that they should be root. Also display the path we're looking for
the sam.ldb file in, to give them more clues.

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

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Jan 21 16:34:06 CET 2019 on sn-devel-144

11 months agotdb: Fix compatibility of wscript with older python
Lukas Slebodnik [Fri, 18 Jan 2019 15:38:03 +0000 (16:38 +0100)]
tdb: Fix compatibility of wscript with older python

Traceback (most recent call last):
  File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 158, in waf_entry_point
    run_commands()
  File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 251, in run_commands
    ctx = run_command(cmd_name)
  File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 235, in run_command
    ctx.execute()
  File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 204, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "tdb-1.3.17/wscript", line 225, in testonly
    cmd = "BINDIR={} {}".format(blddir, sh_test)
ValueError: zero length field name in format

Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jan 20 03:49:59 CET 2019 on sn-devel-144

11 months agos4/messaging: Fix undefined reference in linking libMESSAGING-samba4.so
Anoop C S [Thu, 27 Dec 2018 12:49:42 +0000 (18:19 +0530)]
s4/messaging: Fix undefined reference in linking libMESSAGING-samba4.so

Early check for DEVELOPER or ENABLE_SELFTEST configure options inside
messaging_handlers.c leaves us with the following undefined reference
linkage error:

[1315/3712] Linking bin/default/source4/lib/messaging/libMESSAGING-samba4.so
/usr/bin/ld: source4/lib/messaging/messaging.c.4.o: in function
`imessaging_init_internal':
/root/samba.git/bin/default/../../source4/lib/messaging/messaging.c:472:
undefined reference to `imessaging_register_extra_handlers'
collect2: error: ld returned 1 exit status

This happened due to failure in including "includes.h" before checking
the above mentioned configure options.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agogroup_audit: error handling in group change
Gary Lockyer [Tue, 8 Jan 2019 01:24:06 +0000 (14:24 +1300)]
group_audit: error handling in group change

Generate an appropriate log message in the event of an error
log_group_membership_changes.  As the changes have not been applied to
the database, there is no easy way to determine the intended changes.
This information is available in the "dsdbChange" audit messages, to
avoid replicating this logic for what should be a very rare occurrence
we simply log it as a "Failure"

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Jan 19 22:32:05 CET 2019 on sn-devel-144

11 months agogroup_audit: Tests for error handling in group change
Gary Lockyer [Tue, 8 Jan 2019 01:23:38 +0000 (14:23 +1300)]
group_audit: Tests for error handling in group change

Add tests to exercise the error handling in
log_group_membership_changes.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agos4/py_dsdb: catch/handle alloc failures in py_dsdb_normalise_attributes()
Douglas Bagnall [Wed, 2 May 2018 21:47:18 +0000 (09:47 +1200)]
s4/py_dsdb: catch/handle alloc failures in py_dsdb_normalise_attributes()

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agopython/kcc lib: cope with differently formed repsToFrom
Douglas Bagnall [Thu, 20 Dec 2018 03:01:24 +0000 (16:01 +1300)]
python/kcc lib: cope with differently formed repsToFrom

samba-tool visualise reuses these libraries to parse reps from other DCs, and Windows sometimes sends
more data than we are expecting

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agopython/uptodateness: cope with unknown invocation ID
Douglas Bagnall [Thu, 20 Dec 2018 02:57:35 +0000 (15:57 +1300)]
python/uptodateness: cope with unknown invocation ID

This can happen if a server has been replaced

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agopython: dns_hub: do not crash if a socket fails
Douglas Bagnall [Fri, 18 Jan 2019 20:14:28 +0000 (09:14 +1300)]
python: dns_hub: do not crash if a socket fails

We print the error and keep going.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 months agos4:kdc: Fix size type for num_bind in kdc-heimdal
Andreas Schneider [Fri, 18 Jan 2019 18:09:12 +0000 (19:09 +0100)]
s4:kdc: Fix size type for num_bind in kdc-heimdal

This fixes a compile error on sn-devel184.

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Sat Jan 19 15:36:51 CET 2019 on sn-devel-144

12 months agos4:dsdb: Fix size type for num_of_attrs in acl_read
Andreas Schneider [Fri, 18 Jan 2019 16:50:56 +0000 (17:50 +0100)]
s4:dsdb: Fix size type for num_of_attrs in acl_read

This fixes a compile error on sn-devel184.

Signed-off-by: Andreas Schneider <asn@samba.org>
12 months agos4:dsdb: Fix size types in audit_log
Andreas Schneider [Fri, 18 Jan 2019 15:16:05 +0000 (16:16 +0100)]
s4:dsdb: Fix size types in audit_log

audit_log.c:878:7: error: assuming signed overflow does not occur when
simplifying conditional to constant [-Werror=strict-overflow]

Signed-off-by: Andreas Schneider <asn@samba.org>