diff options
author | Jeremy Allison <jra@samba.org> | 2019-08-21 11:06:17 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-22 18:00:34 +0000 |
commit | a07ce6ead61b7fce545d151bb2ae34ccfda17bc5 (patch) | |
tree | f5f74469c4b9fd2ae432f2f3250d382a4fc3ff0d /source3 | |
parent | 4ce3cd31004f42296f7672301c4230842d483044 (diff) | |
download | samba-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.c | 16 |
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, }; |