]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_extd_audit. Remove mkdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 6 Sep 2019 22:45:25 +0000 (15:45 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 11 Sep 2019 18:24:30 +0000 (18:24 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_extd_audit.c

index fc820c2c13f403ad85a3870b9ce209b3b1b5167f..19f086f728370bf2c79ad1b6166a1d18116d3c63 100644 (file)
@@ -210,28 +210,6 @@ static DIR *audit_opendir(vfs_handle_struct *handle,
        return result;
 }
 
-static int audit_mkdir(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       mode_t mode)
-{
-       int result;
-
-       result = SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode);
-
-       if (lp_syslog() > 0) {
-               syslog(audit_syslog_priority(handle), "mkdir %s %s%s\n",
-                      smb_fname->base_name,
-                      (result < 0) ? "failed: " : "",
-                      (result < 0) ? strerror(errno) : "");
-       }
-       DEBUG(0, ("vfs_extd_audit: mkdir %s %s %s\n",
-              smb_fname->base_name,
-              (result < 0) ? "failed: " : "",
-              (result < 0) ? strerror(errno) : ""));
-
-       return result;
-}
-
 static int audit_mkdirat(vfs_handle_struct *handle,
                        struct files_struct *dirfsp,
                        const struct smb_filename *smb_fname,
@@ -419,7 +397,6 @@ static struct vfs_fn_pointers vfs_extd_audit_fns = {
        .connect_fn = audit_connect,
        .disconnect_fn = audit_disconnect,
        .opendir_fn = audit_opendir,
-       .mkdir_fn = audit_mkdir,
        .mkdirat_fn = audit_mkdirat,
        .rmdir_fn = audit_rmdir,
        .open_fn = audit_open,