summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_full_audit.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-19 15:01:52 -0700
committerJeremy Allison <jra@samba.org>2017-06-18 02:49:24 +0200
commitc3d45216dd7df2a084b7d1af63f207db0c87b53d (patch)
tree263d03b030390096348b9df1224432d4090f019e /source3/modules/vfs_full_audit.c
parentfed54ca01d4dc7796edb9ab337b3529416ce1424 (diff)
downloadsamba-c3d45216dd7df2a084b7d1af63f207db0c87b53d.tar.gz
s3: VFS: Change SMB_VFS_MKNOD to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Diffstat (limited to 'source3/modules/vfs_full_audit.c')
-rw-r--r--source3/modules/vfs_full_audit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index fd8c8c14173..af165dd4b69 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -1659,13 +1659,16 @@ static int smb_full_audit_link(vfs_handle_struct *handle,
}
static int smb_full_audit_mknod(vfs_handle_struct *handle,
- const char *pathname, mode_t mode, SMB_DEV_T dev)
+ const struct smb_filename *smb_fname,
+ mode_t mode,
+ SMB_DEV_T dev)
{
int result;
- result = SMB_VFS_NEXT_MKNOD(handle, pathname, mode, dev);
+ result = SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
- do_log(SMB_VFS_OP_MKNOD, (result >= 0), handle, "%s", pathname);
+ do_log(SMB_VFS_OP_MKNOD, (result >= 0), handle, "%s",
+ smb_fname->base_name);
return result;
}