1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

smbd: set fsp_name of conn->cwd_fsp

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-04-14 21:07:24 +02:00
parent 97d061237b
commit 4c720a05f0
2 changed files with 11 additions and 1 deletions

View File

@ -96,6 +96,16 @@ connection_struct *conn_new(struct smbd_server_connection *sconn)
TALLOC_FREE(conn);
return NULL;
}
conn->cwd_fsp->fsp_name = synthetic_smb_fname(conn->cwd_fsp,
".",
NULL,
NULL,
0,
0);
if (conn->cwd_fsp->fsp_name == NULL) {
TALLOC_FREE(conn);
return NULL;
}
conn->cwd_fsp->fh = talloc_zero(conn->cwd_fsp, struct fd_handle);
if (conn->cwd_fsp->fh == NULL) {
DBG_ERR("talloc_zero failed\n");

View File

@ -589,7 +589,7 @@ bld.SAMBA3_LIBRARY('smbconf',
bld.SAMBA3_LIBRARY('smbd_conn',
source='smbd/conn.c',
deps='samba3-util samba-util',
deps='samba3-util samba-util FNAME_UTIL',
private_library=True)
bld.SAMBA3_SUBSYSTEM('sysquotas',