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 <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
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;