summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-03-09 15:50:02 -0800
committerJeremy Allison <jra@samba.org>2016-03-10 20:55:09 +0100
commit153af65e445e8491fb436e7112b579ed4603ca01 (patch)
tree865ec430a9a31ea9243f6bbacc02372d450417b7 /source3/smbd/filename.c
parente2056f843d71fd7b9c3e326d45c71218cf8faaae (diff)
downloadsamba-153af65e445e8491fb436e7112b579ed4603ca01.tar.gz
s3:lib: Remove the const SMB_STRUCT_STAT * parameter from synthetic_smb_fname_split().
Only one caller uses this, and this can be handled externally. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 14eb53f3146..fc56b245fbf 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -1423,11 +1423,11 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx,
ZERO_STRUCT(st);
st.st_ex_nlink = 1;
*pp_smb_fname = synthetic_smb_fname_split(ctx,
- name_in,
- &st);
+ name_in);
if (*pp_smb_fname == NULL) {
return NT_STATUS_NO_MEMORY;
}
+ (*pp_smb_fname)->st = st;
return NT_STATUS_OK;
}