From: Jeremy Allison Date: Thu, 5 Sep 2019 17:40:04 +0000 (-0700) Subject: s3: VFS: vfs_syncops. Implement mkdirat(). X-Git-Tag: talloc-2.3.1~894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef5bb79677f4a2cca613478c5d4b006d64b67f1b;p=thirdparty%2Fsamba.git s3: VFS: vfs_syncops. Implement mkdirat(). Currently identical to mkdir(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_syncops.c b/source3/modules/vfs_syncops.c index 08257e53654..7f3625b1112 100644 --- a/source3/modules/vfs_syncops.c +++ b/source3/modules/vfs_syncops.c @@ -258,6 +258,19 @@ static int syncops_mkdir(vfs_handle_struct *handle, SYNCOPS_NEXT_SMB_FNAME(MKDIR, smb_fname, (handle, smb_fname, mode)); } +static int syncops_mkdirat(vfs_handle_struct *handle, + struct files_struct *dirfsp, + const struct smb_filename *smb_fname, + mode_t mode) +{ + SYNCOPS_NEXT_SMB_FNAME(MKDIRAT, + smb_fname, + (handle, + dirfsp, + smb_fname, + mode)); +} + static int syncops_rmdir(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { @@ -318,6 +331,7 @@ static int syncops_connect(struct vfs_handle_struct *handle, const char *service static struct vfs_fn_pointers vfs_syncops_fns = { .connect_fn = syncops_connect, .mkdir_fn = syncops_mkdir, + .mkdirat_fn = syncops_mkdirat, .rmdir_fn = syncops_rmdir, .open_fn = syncops_open, .renameat_fn = syncops_renameat,