From: Ralph Boehme Date: Wed, 14 Oct 2020 13:34:55 +0000 (+0200) Subject: vfs_default: allow dirfsps in the link VFS functions X-Git-Tag: talloc-2.3.2~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d6d53a9209715fb019000f253d79d718fa7c026;p=thirdparty%2Fsamba.git vfs_default: allow dirfsps in the link VFS functions The functions work just fine with real dirfsps. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 904ee942c2a..7ea9b716e21 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -2873,8 +2873,6 @@ static int vfswrap_symlinkat(vfs_handle_struct *handle, START_PROFILE(syscall_symlinkat); - SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); - result = symlinkat(link_target->base_name, dirfsp->fh->fd, new_smb_fname->base_name); @@ -2892,8 +2890,6 @@ static int vfswrap_readlinkat(vfs_handle_struct *handle, START_PROFILE(syscall_readlinkat); - SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); - result = readlinkat(dirfsp->fh->fd, smb_fname->base_name, buf, @@ -2914,9 +2910,6 @@ static int vfswrap_linkat(vfs_handle_struct *handle, START_PROFILE(syscall_linkat); - SMB_ASSERT(srcfsp == srcfsp->conn->cwd_fsp); - SMB_ASSERT(dstfsp == dstfsp->conn->cwd_fsp); - result = linkat(srcfsp->fh->fd, old_smb_fname->base_name, dstfsp->fh->fd, @@ -2937,8 +2930,6 @@ static int vfswrap_mknodat(vfs_handle_struct *handle, START_PROFILE(syscall_mknodat); - SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); - result = sys_mknodat(dirfsp->fh->fd, smb_fname->base_name, mode,