vfs_fruit: enabling AAPL extensions must be a global switch
authorRalph Boehme <slow@samba.org>
Tue, 28 Feb 2017 08:39:37 +0000 (09:39 +0100)
committerUri Simchoni <uri@samba.org>
Thu, 2 Mar 2017 03:34:10 +0000 (04:34 +0100)
commit41204a4972ea62b7b656ad81e24bd052990f7e87
tree99b2d00afd468bcff33fe4757018ca2299bd4bb4
parent708767da8c366c021d6d15a3ae71d009357c3320
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
source3/modules/vfs_fruit.c