1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

smbd: Make get_real_filename_cache_key() public

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2023-11-04 15:41:40 +01:00
parent 552f9e9d55
commit ab56379c22
2 changed files with 8 additions and 5 deletions

View File

@ -414,8 +414,7 @@ NTSTATUS get_real_filename_at(struct files_struct *dirfsp,
* vfs_stat() the last component. This will be taken care of by an
* attempt to do a openat_pathref_fsp().
*/
static bool get_real_filename_cache_key(
TALLOC_CTX *mem_ctx,
bool get_real_filename_cache_key(TALLOC_CTX *mem_ctx,
struct files_struct *dirfsp,
const char *name,
DATA_BLOB *_key)

View File

@ -339,6 +339,10 @@ NTSTATUS get_real_filename_full_scan_at(struct files_struct *dirfsp,
bool mangled,
TALLOC_CTX *mem_ctx,
char **found_name);
bool get_real_filename_cache_key(TALLOC_CTX *mem_ctx,
struct files_struct *dirfsp,
const char *name,
DATA_BLOB *_key);
char *get_original_lcomp(TALLOC_CTX *ctx,
connection_struct *conn,
const char *filename_in,