From: Jeremy Allison Date: Wed, 21 Aug 2019 18:06:17 +0000 (-0700) Subject: s3: VFS: vfs_syncops. Implement mknodat(). X-Git-Tag: tevent-0.10.1~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a07ce6ead61b7fce545d151bb2ae34ccfda17bc5;p=thirdparty%2Fsamba.git s3: VFS: vfs_syncops. Implement mknodat(). Currently identical to mknod(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- 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, };