From: Volker Lendecke Date: Sat, 19 Oct 2024 15:30:09 +0000 (+0200) Subject: smbd: Enable fd_openat(cwd_fsp, "/absolute/share/path") X-Git-Tag: tdb-1.4.13~527 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9550f4370e47d765b8a23a8be91fe54d097b67aa;p=thirdparty%2Fsamba.git smbd: Enable fd_openat(cwd_fsp, "/absolute/share/path") So far fd_openat needed to be called with cwd_fsp and "." if you wanted to open the share root, this enables using the absolute share path. The next patch will remove sending the "." with cwd_fsp as a simplification. Enable that with this little change. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index be728d88c58..3290c71f69e 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -655,7 +655,7 @@ again: int cmp = strcmp(connpath, smb_fname->base_name); if (cmp == 0) { SMB_ASSERT(dirfsp == conn->cwd_fsp); - smb_fname->base_name = talloc_strdup(smb_fname, ""); + smb_fname->base_name = talloc_strdup(smb_fname, "."); if (smb_fname->base_name == NULL) { status = NT_STATUS_NO_MEMORY; goto out;