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:
parent
97d061237b
commit
4c720a05f0
@ -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");
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user