From a07ce6ead61b7fce545d151bb2ae34ccfda17bc5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 21 Aug 2019 11:06:17 -0700 Subject: [PATCH] s3: VFS: vfs_syncops. Implement mknodat(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Currently identical to mknod(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- source3/modules/vfs_syncops.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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, }; -- 2.47.3