]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Make "none" the default setting for the successful and failed operations in the vfs_f...
authorTimur I. Bakeyev <timur@iXsystems.com>
Fri, 22 Jun 2018 04:19:42 +0000 (12:19 +0800)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Jul 2018 07:40:59 +0000 (09:40 +0200)
Signed-off-by: Timur I. Bakeyev <timur@iXsystems.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_full_audit.c

index 5a7af1b7d471a6bcc98097deacf672588a2d0cfb..7cef6a5e5cff971c1ec636b9baef0c9bff184b97 100644 (file)
@@ -624,6 +624,7 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
                         const char *svc, const char *user)
 {
        int result;
+       const char *none[] = { "none" };
        struct vfs_full_audit_private_data *pd = NULL;
 
        result = SMB_VFS_NEXT_CONNECT(handle, svc, user);
@@ -663,10 +664,10 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
 
        pd->success_ops = init_bitmap(
                pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
-                                       "success", NULL));
+                                       "success", none));
        pd->failure_ops = init_bitmap(
                pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
-                                       "failure", NULL));
+                                       "failure", none));
 
        /* Store the private data. */
        SMB_VFS_HANDLE_SET_DATA(handle, pd, NULL,