See next patch
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
if (is_fake_file_path(name_in)) {
const struct timespec omit = make_omit_timespec();
- smb_fname = synthetic_smb_fname_split(mem_ctx, name_in, posix);
+
+ if (posix) {
+ /*
+ * No stream name to look for
+ */
+ smb_fname = synthetic_smb_fname(
+ mem_ctx,
+ name_in,
+ NULL,
+ NULL,
+ 0,
+ SMB_FILENAME_POSIX_PATH);
+ } else {
+ smb_fname = synthetic_smb_fname_split(mem_ctx,
+ name_in,
+ false);
+ }
if (smb_fname == NULL) {
return NT_STATUS_NO_MEMORY;
}