]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_syncops. Implement mknodat().
authorJeremy Allison <jra@samba.org>
Wed, 21 Aug 2019 18:06:17 +0000 (11:06 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 18:00:34 +0000 (18:00 +0000)
Currently identical to mknod().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_syncops.c

index 27798d02adc59f578b283495b8fe7bf3962d3bf5..d5a3e9642986a2c01bb6b2b88c6e3ac7ecd6ca76 100644 (file)
@@ -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,
 };