diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 12 | ||||
-rw-r--r-- | source3/include/smb.h | 16 |
2 files changed, 22 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 6f298ad9a0..a45fa42e3d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6264,13 +6264,13 @@ int fsp_stat(files_struct *fsp, SMB_STRUCT_STAT *pst); /* The following definitions come from smbd/filename.c */ +NTSTATUS get_full_smb_filename(TALLOC_CTX *ctx, const struct smb_filename *smb_fname, + char **full_name); NTSTATUS unix_convert(TALLOC_CTX *ctx, - connection_struct *conn, - const char *orig_path, - bool allow_wcard_last_component, - char **pp_conv_path, - char **pp_saved_last_component, - SMB_STRUCT_STAT *pst); + connection_struct *conn, + const char *orig_path, + struct smb_filename **smb_fname, + uint32_t ucf_flags); NTSTATUS check_name(connection_struct *conn, const char *name); int get_real_filename(connection_struct *conn, const char *path, const char *name, TALLOC_CTX *mem_ctx, diff --git a/source3/include/smb.h b/source3/include/smb.h index abcd49451c..9332df3cd2 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1925,4 +1925,20 @@ struct smb_file_time { struct timespec create_time; }; +/* + * unix_convert_flags + */ +#define UCF_SAVE_LCOMP 0x00000001 +#define UCF_ALLOW_WCARD_LCOMP 0x00000002 + +/* + * smb_filename + */ +struct smb_filename { + char *base_name; + char *stream_name; + char *original_lcomp; + SMB_STRUCT_STAT st; +}; + #endif /* _SMB_H */ |