vlendec/samba-autobuild/.git
8 years agos3: Test whether get_share_mode_lock cleans up stale processes
Volker Lendecke [Fri, 11 May 2012 12:39:42 +0000 (14:39 +0200)]
s3: Test whether get_share_mode_lock cleans up stale processes

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Check for serverid_exists in rename_share_filename
Volker Lendecke [Mon, 7 May 2012 13:23:10 +0000 (15:23 +0200)]
s3: Check for serverid_exists in rename_share_filename

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Do not check the PIDs is parse_share_modes
Volker Lendecke [Mon, 7 May 2012 14:34:11 +0000 (16:34 +0200)]
s3: Do not check the PIDs is parse_share_modes

We do that when conflicts arise

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Check for serverid_exists in smb_posix_unlink
Volker Lendecke [Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)]
s3: Check for serverid_exists in smb_posix_unlink

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Check for serverid_exists in open_mode_check
Volker Lendecke [Mon, 7 May 2012 13:23:10 +0000 (15:23 +0200)]
s3: Check for serverid_exists in open_mode_check

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Check for serverid_exists in notify_deferred_opens
Volker Lendecke [Mon, 7 May 2012 10:22:50 +0000 (12:22 +0200)]
s3: Check for serverid_exists in notify_deferred_opens

We will remove the check in parse_share_modes soon

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3: Add "share_mode_stale_server"
Volker Lendecke [Mon, 7 May 2012 10:57:07 +0000 (12:57 +0200)]
s3: Add "share_mode_stale_server"

This is a helper routine that prunes a dead share mode entry on demand. This
prepares for removing the serverids_exist call in parse_share_modes.

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos4:torture: add smb2.session.expire1
Stefan Metzmacher [Thu, 17 May 2012 16:32:49 +0000 (18:32 +0200)]
s4:torture: add smb2.session.expire1

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 17 21:53:11 CEST 2012 on sn-devel-104

8 years agos4:torture: add smb2.session.reconnect2 test
Stefan Metzmacher [Mon, 30 Apr 2012 14:40:14 +0000 (16:40 +0200)]
s4:torture: add smb2.session.reconnect2 test

This uses just one transport connection
and demonstrates the implicit logoff of the previous session.

metze

8 years agos4:torture: rename smb2.session.reconnect to smb2.session.reconnect1
Stefan Metzmacher [Mon, 30 Apr 2012 12:46:54 +0000 (14:46 +0200)]
s4:torture: rename smb2.session.reconnect to smb2.session.reconnect1

metze

8 years agos4:torture: remove unused vars in smb2.session.reauth*
Stefan Metzmacher [Thu, 17 May 2012 16:32:16 +0000 (18:32 +0200)]
s4:torture: remove unused vars in smb2.session.reauth*

metze

8 years agos4:auth/gensec_gssapi: add "gensec_gssapi:requested_life_time" option
Stefan Metzmacher [Fri, 20 Apr 2012 11:51:22 +0000 (13:51 +0200)]
s4:auth/gensec_gssapi: add "gensec_gssapi:requested_life_time" option

metze

8 years agos3:gse: implement gensec_gse_expire_time()
Stefan Metzmacher [Sat, 3 Mar 2012 03:34:19 +0000 (04:34 +0100)]
s3:gse: implement gensec_gse_expire_time()

metze

8 years agos4:auth/gensec: implement gensec_gssapi_expire_time()
Stefan Metzmacher [Sat, 3 Mar 2012 03:33:55 +0000 (04:33 +0100)]
s4:auth/gensec: implement gensec_gssapi_expire_time()

metze

8 years agoauth/gensec: implement gensec_spnego_expire_time()
Stefan Metzmacher [Sat, 3 Mar 2012 03:33:15 +0000 (04:33 +0100)]
auth/gensec: implement gensec_spnego_expire_time()

metze

8 years agoauth/gensec: add gensec_expire_time()
Stefan Metzmacher [Sat, 3 Mar 2012 03:32:45 +0000 (04:32 +0100)]
auth/gensec: add gensec_expire_time()

metze

8 years agos4:auth/gensec_gssapi: add missing 'break' statements
Stefan Metzmacher [Thu, 17 May 2012 15:31:09 +0000 (17:31 +0200)]
s4:auth/gensec_gssapi: add missing 'break' statements

metze

8 years agos4:auth/gensec_gssapi: remember the expire time
Stefan Metzmacher [Fri, 2 Mar 2012 21:02:36 +0000 (22:02 +0100)]
s4:auth/gensec_gssapi: remember the expire time

metze

8 years agos3:gse: remember the expire time
Stefan Metzmacher [Thu, 26 Jan 2012 16:32:12 +0000 (17:32 +0100)]
s3:gse: remember the expire time

metze

8 years agos3:smb2_sesssetup: make use of nt_status_squash() in smbd_smb2_session_setup_recv()
Stefan Metzmacher [Wed, 16 May 2012 13:32:08 +0000 (15:32 +0200)]
s3:smb2_sesssetup: make use of nt_status_squash() in smbd_smb2_session_setup_recv()

metze

8 years agoCheck the return from create_acl_blob
Richard Sharpe [Thu, 17 May 2012 03:21:34 +0000 (20:21 -0700)]
Check the return from create_acl_blob

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Thu May 17 07:17:29 CEST 2012 on sn-devel-104

8 years agos3-smbd: Avoid creating a UID ACL entry for SIDs that are mapped as ID_TYPE_BOTH...
Andrew Bartlett [Wed, 16 May 2012 20:07:17 +0000 (13:07 -0700)]
s3-smbd: Avoid creating a UID ACL entry for SIDs that are mapped as ID_TYPE_BOTH The GID ACL entry is what will be mapped in most cases, and so is sufficient.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 17 05:08:44 CEST 2012 on sn-devel-104

8 years agos3-smbd: Consider a group with the same SID as sufficient duplication
Andrew Bartlett [Thu, 10 May 2012 01:05:41 +0000 (11:05 +1000)]
s3-smbd: Consider a group with the same SID as sufficient duplication

This code is to ensure that the user does not loose rights when their file
ownership is taken away.  If the owner (an IDMAP_BOTH SID) appears as a group
then a duplicate user is not required.

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3-smbd: Handle ID_TYPE_BOTH by mapping to both a group ACL entry and file ownership...
Andrew Bartlett [Tue, 15 May 2012 19:33:18 +0000 (12:33 -0700)]
s3-smbd: Handle ID_TYPE_BOTH by mapping to both a group ACL entry and file ownership This will allow groups, such as domain administrators, to own files while correctly handling the rest of the ACL permissions.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agoWe need to split things up into a new helper function add_current_ace_to_acl() in...
Andrew Bartlett [Tue, 15 May 2012 00:11:09 +0000 (17:11 -0700)]
We need to split things up into a new helper function add_current_ace_to_acl() in order for there to be more posix ACL elements than NT ACL elements (so a group SID can own a file, but also get the group permissions that will be honoured)

Andrew Bartlett

Slightly modified by Jeremy to reduce diff size.

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agoThis covers a case where an ID_TYPE_BOTH mapping creates group permissions, but must...
Jeremy Allison [Mon, 14 May 2012 19:34:39 +0000 (12:34 -0700)]
This covers a case where an ID_TYPE_BOTH mapping creates group permissions, but must own the file. Based on an original patch by Andrew Bartlett.

8 years agos3-smbd: Do not merge UID ACE values with GID ACE values for posix ACL
Andrew Bartlett [Wed, 9 May 2012 02:11:45 +0000 (12:11 +1000)]
s3-smbd: Do not merge UID ACE values with GID ACE values for posix ACL

This might happen when we get a SID mapped to IDMAP_BOTH.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
8 years agos3:onefs: remove all onefs related code as it not maintained anymore
Stefan Metzmacher [Wed, 16 May 2012 07:26:12 +0000 (09:26 +0200)]
s3:onefs: remove all onefs related code as it not maintained anymore

See https://lists.samba.org/archive/samba-technical/2012-May/083631.html
for the discussion.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 16 11:23:05 CEST 2012 on sn-devel-104

8 years agoFix the overwriting of errno before use in a DEBUG statement and use the return value...
Richard Sharpe [Tue, 15 May 2012 14:47:14 +0000 (07:47 -0700)]
Fix the overwriting of errno before use in a DEBUG statement and use the return value from store_acl_blob_fsp rather than ignoring it.

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Wed May 16 03:43:41 CEST 2012 on sn-devel-104

8 years agobuild: Add explicit mention of --abi-check-disable to ABI checker
Andrew Bartlett [Tue, 15 May 2012 13:03:31 +0000 (23:03 +1000)]
build: Add explicit mention of --abi-check-disable to ABI checker

This information has always been in the linked wiki page, but put it
in the build to unblock developers using platforms with slightly
different GDB output.

We can also assist this by improving the string normalisiation in the
ABI checker when example errors are provided.

It is better to build with the waf build and the full testsuite than
to avoid the waf build or not to use the developer options simply to
skip the ABI checker.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed May 16 01:53:42 CEST 2012 on sn-devel-104

8 years agolibwbclient: Fix an invalid free()
Volker Lendecke [Tue, 15 May 2012 17:58:26 +0000 (19:58 +0200)]
libwbclient: Fix an invalid free()

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed May 16 00:00:00 CEST 2012 on sn-devel-104

8 years agowbinfo: Fix Coverity ID 242684 Resource leak
Volker Lendecke [Tue, 15 May 2012 17:49:31 +0000 (19:49 +0200)]
wbinfo: Fix Coverity ID 242684 Resource leak

8 years agowbinfo: Fix Coverity ID 242685 Resource leak
Volker Lendecke [Tue, 15 May 2012 17:48:42 +0000 (19:48 +0200)]
wbinfo: Fix Coverity ID 242685 Resource leak

8 years agos3: Fix Coverity ID 242710 Untrusted pointer read
Volker Lendecke [Tue, 15 May 2012 17:26:48 +0000 (19:26 +0200)]
s3: Fix Coverity ID 242710 Untrusted pointer read

According to susv3 we have to make sure that we call isupper with
values only in the range of an unsigned char. This is best achieved
by automatic narrowing through assignment.

8 years agodbwrap: Fix Coverity ID 242750 Incorrect sizeof expression
Volker Lendecke [Tue, 15 May 2012 16:51:06 +0000 (18:51 +0200)]
dbwrap: Fix Coverity ID 242750 Incorrect sizeof expression

Taking the size of "db" is correct, but a bit fishy. Silence Coverity.

8 years agolibcli/smb: move smb2cli_ioctl.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 10:24:38 +0000 (12:24 +0200)]
libcli/smb: move smb2cli_ioctl.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 20:17:01 CEST 2012 on sn-devel-104

8 years agolibcli/smb: move smb2cli_query_directory.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 10:19:11 +0000 (12:19 +0200)]
libcli/smb: move smb2cli_query_directory.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_query_info.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 10:14:47 +0000 (12:14 +0200)]
libcli/smb: move smb2cli_query_info.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_set_info.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 10:05:50 +0000 (12:05 +0200)]
libcli/smb: move smb2cli_set_info.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_flush.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 10:00:19 +0000 (12:00 +0200)]
libcli/smb: move smb2cli_flush.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_write.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 09:11:24 +0000 (11:11 +0200)]
libcli/smb: move smb2cli_write.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_read.c from source3 to the toplevel
Björn Baumbach [Tue, 15 May 2012 08:50:49 +0000 (10:50 +0200)]
libcli/smb: move smb2cli_read.c from source3 to the toplevel

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolibcli/smb: move smb2cli_close.c from source3 to the toplevel
Stefan Metzmacher [Tue, 15 May 2012 08:26:25 +0000 (10:26 +0200)]
libcli/smb: move smb2cli_close.c from source3 to the toplevel

metze

8 years agolibcli/smb: move smb2cli_create.c from source3 to the toplevel
Stefan Metzmacher [Tue, 15 May 2012 08:23:54 +0000 (10:23 +0200)]
libcli/smb: move smb2cli_create.c from source3 to the toplevel

metze

8 years agos3:libsmb: avoid interpret_long_date() in smb2cli_create
Stefan Metzmacher [Tue, 15 May 2012 09:27:23 +0000 (11:27 +0200)]
s3:libsmb: avoid interpret_long_date() in smb2cli_create

metze

8 years agos3:cli_np_tstream: include smbXcli_base.h, because we'll use functions from there
Stefan Metzmacher [Tue, 15 May 2012 10:41:55 +0000 (12:41 +0200)]
s3:cli_np_tstream: include smbXcli_base.h, because we'll use functions from there

metze

8 years agos3: Remove some unused code
Volker Lendecke [Tue, 15 May 2012 11:37:25 +0000 (13:37 +0200)]
s3: Remove some unused code

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue May 15 18:24:10 CEST 2012 on sn-devel-104

8 years agos3: Fix a likely cut&paste error
Volker Lendecke [Mon, 14 May 2012 17:48:16 +0000 (19:48 +0200)]
s3: Fix a likely cut&paste error

8 years agolib/ccan: add a missing dependency to 'execinfo' for 'backtrace()'
Stefan Metzmacher [Tue, 15 May 2012 10:40:19 +0000 (12:40 +0200)]
lib/ccan: add a missing dependency to 'execinfo' for 'backtrace()'

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 16:12:54 CEST 2012 on sn-devel-104

8 years agos3-auth: Rename to init_system_session_info().
Andreas Schneider [Mon, 14 May 2012 08:37:59 +0000 (10:37 +0200)]
s3-auth: Rename to init_system_session_info().

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue May 15 13:56:00 CEST 2012 on sn-devel-104

8 years agos3-auth: Don't lookup the system user in pdb.
Andreas Schneider [Mon, 14 May 2012 08:31:32 +0000 (10:31 +0200)]
s3-auth: Don't lookup the system user in pdb.

This fixes bug #8944, ldapsam:trusted and ipasam. It is an additional
fix for bug #8567 (0528cb5f3a15b72dcb34ece21a3ffb3e7b8d6eb9).

8 years agoUse ENC_ values for proto_tree_add_item() calls.
Guy Harris [Tue, 15 May 2012 07:49:53 +0000 (09:49 +0200)]
Use ENC_ values for proto_tree_add_item() calls.

It appears that the integral value containing the bits in a bitmap should be
dissected according to the data representation, as the individual fields are
fetched by dissect_ndr_XXX, which is passed the data representation and
extracts the value appropriately for the data representation, so the patch
replaces TRUE (which meant "always little-endian" when the last argument to
proto_tree_add_item() was a byte-order Boolean) with DREP_ENC_INTEGER(drep)
(which means "ENC_BIG_ENDIAN or ENC_LITTLE_ENDIAN, depending on the data
representation").

For structures, I'm just using ENC_NA.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=8942
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue May 15 12:07:06 CEST 2012 on sn-devel-104

8 years agos4:ntvfs/smb2: remove misleading comment regarding security=server
Stefan Metzmacher [Sat, 12 May 2012 10:53:34 +0000 (12:53 +0200)]
s4:ntvfs/smb2: remove misleading comment regarding security=server

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 10:12:53 CEST 2012 on sn-devel-104

8 years agos4:ntvfs/cifs: remove misleading comment regarding security=server
Stefan Metzmacher [Sat, 12 May 2012 10:53:34 +0000 (12:53 +0200)]
s4:ntvfs/cifs: remove misleading comment regarding security=server

metze

8 years agos4:auth: remove unused auth_server.c
Stefan Metzmacher [Sat, 12 May 2012 10:01:18 +0000 (12:01 +0200)]
s4:auth: remove unused auth_server.c

metze

8 years agos3:auth: remove unused auth_server.c
Stefan Metzmacher [Sat, 12 May 2012 10:01:03 +0000 (12:01 +0200)]
s3:auth: remove unused auth_server.c

metze

8 years agodocs-xml: remove documentation of "SECURITY = SERVER"
Stefan Metzmacher [Sat, 12 May 2012 10:00:32 +0000 (12:00 +0200)]
docs-xml: remove documentation of "SECURITY = SERVER"

metze

8 years agos3-auth: remove "security=server" (depricated since 3.6)
Stefan Metzmacher [Sat, 12 May 2012 10:00:00 +0000 (12:00 +0200)]
s3-auth: remove "security=server" (depricated since 3.6)

"security=server" has a lot of problems in the world with
modern security (ntlmv2 and krb5). It was also not very
reliable, as it needed a stable connection to the password
server for the lifetime of the whole client connection!

Please use "security=domain" or "security=ads" is you
authentication against remote servers (domain controllers).

metze
                       --------------
                      /              \
                     /      REST      \
                    /        IN        \
                   /       PEACE        \
                  /                      \
                  |      SEC_SERVER      |
                  |    security=server   |
                  |                      |
                  |                      |
                  |       12 May         |
                  |                      |
                  |        2012          |
                 *|     *  *  *          | *
        _________)/\\_//(\/(/\)/\//\/\///|_)_______

8 years agos4:param/tests: remove "security=server" test
Stefan Metzmacher [Sat, 12 May 2012 09:14:17 +0000 (11:14 +0200)]
s4:param/tests: remove "security=server" test

metze

8 years agoselftest: Remove tests for security=server
Andrew Bartlett [Mon, 14 May 2012 23:43:03 +0000 (09:43 +1000)]
selftest: Remove tests for security=server

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agosamba-upgradedns: Use the correct magic incantation of sys.path.insert()
Amitay Isaacs [Tue, 15 May 2012 00:56:21 +0000 (10:56 +1000)]
samba-upgradedns: Use the correct magic incantation of sys.path.insert()

This replaces "bin/python" with the correct path for python libraries. The
pattern requires double quotes (") instead of single quotes (').

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue May 15 05:19:46 CEST 2012 on sn-devel-104

8 years agos3: talloc_zero is not needed for structs we ndr_pull into
Volker Lendecke [Mon, 7 May 2012 09:26:39 +0000 (11:26 +0200)]
s3: talloc_zero is not needed for structs we ndr_pull into

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon May 14 18:59:07 CEST 2012 on sn-devel-104

8 years agolibcli/smb: move smb2cli_logoff_* from source3 to the top level
Stefan Metzmacher [Mon, 14 May 2012 07:47:05 +0000 (09:47 +0200)]
libcli/smb: move smb2cli_logoff_* from source3 to the top level

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 14 17:02:46 CEST 2012 on sn-devel-104

8 years agolibcli/smb: git mv smb2_session.c smb2cli_session.c
Stefan Metzmacher [Mon, 14 May 2012 07:41:10 +0000 (09:41 +0200)]
libcli/smb: git mv smb2_session.c smb2cli_session.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_write.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_write.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_session.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_session.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_read.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_read.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_query_directory.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_query_directory.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_ioctl.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_ioctl.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_flush.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_flush.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_create.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_create.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_close.c
Stefan Metzmacher [Mon, 14 May 2012 07:56:47 +0000 (09:56 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_close.c

metze

8 years agos3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_tcon.c
Stefan Metzmacher [Mon, 14 May 2012 07:55:42 +0000 (09:55 +0200)]
s3:libsmb: s/\<event_context/tevent_context/gc in smb2cli_tcon.c

metze

8 years agolib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.c
Stefan Metzmacher [Mon, 14 May 2012 08:02:24 +0000 (10:02 +0200)]
lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.c

metze

8 years agos3:torture: add #include "lib/util/tevent_ntstatus.h" to test_addrchange.c
Stefan Metzmacher [Mon, 14 May 2012 09:47:22 +0000 (11:47 +0200)]
s3:torture: add #include "lib/util/tevent_ntstatus.h" to test_addrchange.c

metze

8 years agos3:lib/util: use map_nt_error_from_unix_common() in tevent_req_poll_ntstatus()
Stefan Metzmacher [Mon, 14 May 2012 07:58:56 +0000 (09:58 +0200)]
s3:lib/util: use map_nt_error_from_unix_common() in tevent_req_poll_ntstatus()

metze

8 years agolib/util: add missing 'errors' dependency to 'tevent-util'
Stefan Metzmacher [Mon, 14 May 2012 09:46:39 +0000 (11:46 +0200)]
lib/util: add missing 'errors' dependency to 'tevent-util'

metze

8 years agos4:lib/events: no longer define TEVENT_COMPAT_DEFINES
Stefan Metzmacher [Mon, 14 May 2012 09:50:52 +0000 (11:50 +0200)]
s4:lib/events: no longer define TEVENT_COMPAT_DEFINES

metze

8 years agos4:lib/events: remove unused event_context_find() prototype
Stefan Metzmacher [Mon, 14 May 2012 09:49:52 +0000 (11:49 +0200)]
s4:lib/events: remove unused event_context_find() prototype

metze

8 years agolibcli/nbt: no longer use old 'event_' tevent compat symbols
Stefan Metzmacher [Mon, 14 May 2012 09:48:50 +0000 (11:48 +0200)]
libcli/nbt: no longer use old 'event_' tevent compat symbols

metze

8 years agolib/tevent/testsuite: no longer use 'compat' symbols
Stefan Metzmacher [Mon, 14 May 2012 09:48:00 +0000 (11:48 +0200)]
lib/tevent/testsuite: no longer use 'compat' symbols

metze

8 years agos3:smb2_close: make the top level code async using
Stefan Metzmacher [Mon, 14 May 2012 11:08:34 +0000 (13:08 +0200)]
s3:smb2_close: make the top level code async using

metze

8 years agos3:smb2_close: add add smbd_smb2_close_send/recv as wrapper
Stefan Metzmacher [Mon, 14 May 2012 10:57:15 +0000 (12:57 +0200)]
s3:smb2_close: add add smbd_smb2_close_send/recv as wrapper

metze

8 years agos3:smb2_close: don't do any marshalling in smbd_smb2_close() let the caller to it
Stefan Metzmacher [Mon, 14 May 2012 10:43:52 +0000 (12:43 +0200)]
s3:smb2_close: don't do any marshalling in smbd_smb2_close() let the caller to it

metze

8 years agos3:smb2_tcon: make the top level code async using
Stefan Metzmacher [Mon, 14 May 2012 06:41:03 +0000 (08:41 +0200)]
s3:smb2_tcon: make the top level code async using

metze

8 years agos3:smb2_tcon: add smbd_smb2_tree_connect_send/recv as wrapper
Stefan Metzmacher [Sun, 13 May 2012 15:47:07 +0000 (17:47 +0200)]
s3:smb2_tcon: add smbd_smb2_tree_connect_send/recv as wrapper

metze

8 years agos3: Fix Coverity ID 241320 Array compared against 0
Volker Lendecke [Wed, 9 May 2012 14:36:55 +0000 (16:36 +0200)]
s3: Fix Coverity ID 241320 Array compared against 0

domain->alt_name is an array, not a pointer

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon May 14 15:11:47 CEST 2012 on sn-devel-104

8 years agos3: Make SMB_QUERY_FILE_UNIX_BASIC's devno work for files
Volker Lendecke [Fri, 11 May 2012 11:31:36 +0000 (13:31 +0200)]
s3: Make SMB_QUERY_FILE_UNIX_BASIC's devno work for files

According to susv3, st_rdev is valid exactly for char and block devices. Normal
files have st_dev set.

8 years agomove the dbwrap library to the top level
Michael Adam [Fri, 11 May 2012 20:11:42 +0000 (22:11 +0200)]
move the dbwrap library to the top level

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104

8 years agos3:build: move lib/dbwrap/dbwrap_util.o to the other dbwrap objects...
Michael Adam [Sun, 13 May 2012 23:52:09 +0000 (01:52 +0200)]
s3:build: move lib/dbwrap/dbwrap_util.o to the other dbwrap objects...

8 years agos3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_tdb.c
Michael Adam [Fri, 11 May 2012 19:56:03 +0000 (21:56 +0200)]
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_tdb.c

8 years agos3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.c
Michael Adam [Fri, 11 May 2012 19:54:46 +0000 (21:54 +0200)]
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.c

8 years agos3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_ctdb.c
Michael Adam [Fri, 11 May 2012 19:53:13 +0000 (21:53 +0200)]
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_ctdb.c

8 years agos3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_file.c
Michael Adam [Fri, 11 May 2012 19:49:40 +0000 (21:49 +0200)]
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_file.c

8 years agos3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_util.c
Michael Adam [Fri, 11 May 2012 19:46:23 +0000 (21:46 +0200)]
s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_util.c

8 years agos3:dbwrap: move definition of dbwrap_lock_order to dbwrap.h
Michael Adam [Fri, 11 May 2012 19:36:48 +0000 (21:36 +0200)]
s3:dbwrap: move definition of dbwrap_lock_order to dbwrap.h

This is needed in all of the library, not only in the dbwrap_open part.

8 years agotevent: fix indentation in the wscript
Michael Adam [Fri, 11 May 2012 16:27:01 +0000 (18:27 +0200)]
tevent: fix indentation in the wscript

(accidentially commited in 5e8dee8d96a7522cdcde57dbbf93fbe9c614992e)

8 years agos3:smb2_sesssetup: make the top level code async using
Stefan Metzmacher [Sat, 12 May 2012 08:20:55 +0000 (10:20 +0200)]
s3:smb2_sesssetup: make the top level code async using

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun May 13 17:59:39 CEST 2012 on sn-devel-104

8 years agos3:smb2_sesssetup: add smbd_smb2_session_setup_send/recv as wrapper
Stefan Metzmacher [Sat, 12 May 2012 08:16:41 +0000 (10:16 +0200)]
s3:smb2_sesssetup: add smbd_smb2_session_setup_send/recv as wrapper

This just adds smbd_smb2_session_setup_send/recv as wrapper to
the sync smbd_smb2_session_setup function.

This will allow us to change to top level code to work async,
then we can have a 2nd step where we remove the sync
smbd_smb2_session_setup function.

metze

8 years agos3:smb2_sesssetup: pass down in_flags to smbd_smb2_session_setup()
Stefan Metzmacher [Sat, 12 May 2012 07:48:19 +0000 (09:48 +0200)]
s3:smb2_sesssetup: pass down in_flags to smbd_smb2_session_setup()

metze