vfs_fruit: don't use MS NFS ACEs with Windows clients
authorRalph Boehme <slow@samba.org>
Wed, 12 Jul 2017 07:33:59 +0000 (09:33 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 13 Jul 2017 20:21:08 +0000 (22:21 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12897

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Jul 13 22:21:08 CEST 2017 on sn-devel-144

source3/modules/vfs_fruit.c

index 3482d4ef4708dc5130b88d85f257b20f34d67bc2..7c481cdf5f843d98b0f155aab3f9e366f7a38b1e 100644 (file)
@@ -2606,6 +2606,9 @@ static NTSTATUS check_ms_nfs(vfs_handle_struct *handle,
                                struct fruit_config_data,
                                return NT_STATUS_UNSUCCESSFUL);
 
+       if (!global_fruit_config.nego_aapl) {
+               return NT_STATUS_OK;
+       }
        if (psd->dacl == NULL || !config->unix_info_enabled) {
                return NT_STATUS_OK;
        }
@@ -5280,6 +5283,9 @@ static NTSTATUS fruit_fget_nt_acl(vfs_handle_struct *handle,
        /*
         * Add MS NFS style ACEs with uid, gid and mode
         */
+       if (!global_fruit_config.nego_aapl) {
+               return NT_STATUS_OK;
+       }
        if (!config->unix_info_enabled) {
                return NT_STATUS_OK;
        }