Use get_original_lcomp() call. Removes one use of smb_fname->original_lcomp.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
return tevent_req_post(req, ev);
}
- state->in_file_name = smb_fname->original_lcomp;
+ /*
+ * We still need to do the case processing
+ * to save off the client-supplied last component.
+ * At least we know there's no @GMT normalization
+ * or MS-DFS paths to do in a directory mask.
+ */
+ state->in_file_name = get_original_lcomp(state,
+ conn,
+ state->in_file_name,
+ 0);
+ if (state->in_file_name == NULL) {
+ tevent_req_oom(req);
+ return tevent_req_post(req, ev);
+ }
}
if (fsp->dptr == NULL) {