mirror of
https://github.com/samba-team/samba.git
synced 2025-08-06 17:32:29 +03:00
smbd: Add fsp_fullbasepath
Okay, this is similar to full_path_tos, but with variable arrays now and much simpler :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
2c7bfdc644
commit
ea47abcf3c
@ -780,3 +780,14 @@ uint32_t fsp_lease_type(struct files_struct *fsp)
|
||||
}
|
||||
return map_oplock_to_lease_type(fsp->oplock_type);
|
||||
}
|
||||
|
||||
size_t fsp_fullbasepath(struct files_struct *fsp, char *buf, size_t buflen)
|
||||
{
|
||||
int len;
|
||||
|
||||
len = snprintf(buf, buflen, "%s/%s", fsp->conn->connectpath,
|
||||
fsp->fsp_name->base_name);
|
||||
SMB_ASSERT(len>0);
|
||||
|
||||
return len;
|
||||
}
|
||||
|
@ -412,6 +412,7 @@ NTSTATUS fsp_set_smb_fname(struct files_struct *fsp,
|
||||
const struct smb_filename *smb_fname_in);
|
||||
const struct GUID *fsp_client_guid(const files_struct *fsp);
|
||||
uint32_t fsp_lease_type(struct files_struct *fsp);
|
||||
size_t fsp_fullbasepath(struct files_struct *fsp, char *buf, size_t buflen);
|
||||
|
||||
/* The following definitions come from smbd/ipc.c */
|
||||
|
||||
|
Reference in New Issue
Block a user