summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-21 11:06:17 -0700
committerJeremy Allison <jra@samba.org>2019-08-22 18:00:34 +0000
commita07ce6ead61b7fce545d151bb2ae34ccfda17bc5 (patch)
treef5f74469c4b9fd2ae432f2f3250d382a4fc3ff0d /source3
parent4ce3cd31004f42296f7672301c4230842d483044 (diff)
downloadsamba-a07ce6ead61b7fce545d151bb2ae34ccfda17bc5.tar.gz
s3: VFS: vfs_syncops. Implement mknodat().
Currently identical to mknod(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_syncops.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/modules/vfs_syncops.c b/source3/modules/vfs_syncops.c
index 27798d02adc..d5a3e964298 100644
--- a/source3/modules/vfs_syncops.c
+++ b/source3/modules/vfs_syncops.c
@@ -240,6 +240,21 @@ static int syncops_mknod(vfs_handle_struct *handle,
smb_fname, (handle, smb_fname, mode, dev));
}
+static int syncops_mknodat(vfs_handle_struct *handle,
+ files_struct *dirfsp,
+ const struct smb_filename *smb_fname,
+ mode_t mode,
+ SMB_DEV_T dev)
+{
+ SYNCOPS_NEXT_SMB_FNAME(MKNODAT,
+ smb_fname,
+ (handle,
+ dirfsp,
+ smb_fname,
+ mode,
+ dev));
+}
+
static int syncops_mkdir(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
mode_t mode)
@@ -314,6 +329,7 @@ static struct vfs_fn_pointers vfs_syncops_fns = {
.symlink_fn = syncops_symlink,
.linkat_fn = syncops_linkat,
.mknod_fn = syncops_mknod,
+ .mknodat_fn = syncops_mknodat,
.close_fn = syncops_close,
};