vfs_fruit: enabling AAPL extensions must be a global switch
commitb86d92b9399b9d2156228831a7dbd1091028a6d1
authorRalph Boehme <slow@samba.org>
Tue, 28 Feb 2017 08:39:37 +0000 (28 09:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Mar 2017 08:23:13 +0000 (13 09:23 +0100)
tree204b962c17f5f61ed26f684103869d00a92970bc
parent083ff22e0a89b6efb982c750c3ebb39130626516
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