vfs_fruit: enabling AAPL extensions must be a global switch
commit605e069604d11524a4d22947f67f0fc03b15de25
authorRalph Boehme <slow@samba.org>
Tue, 28 Feb 2017 08:39:37 +0000 (28 09:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 Mar 2017 18:40:23 +0000 (6 19:40 +0100)
treea83f7d7477c0b6a4ff6b60110f36fe1a39c0acb0
parentf9755bf200b5565474a55bca800dfff1a07c0d0a
vfs_fruit: enabling AAPL extensions must be a global switch

Apple's SMB2 AAPL extension is enabled once per SMB2
connection. Unfortunately the (per se correct) fix for bug #12541
results in vfs_fruit checking a per tcon config state variable to
determine whether AAPL has been negotiated. This variable will be false
for all but the first tcon. We must make it a global variable.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12604

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Thu Mar  2 04:34:10 CET 2017 on sn-devel-144

(cherry picked from commit 41204a4972ea62b7b656ad81e24bd052990f7e87)
source3/modules/vfs_fruit.c