struct smb_filename *smb_fname_atname,
uint32_t oplock_request,
const struct smb2_lease *lease,
+ uint32_t private_flags,
struct security_descriptor *sd,
int *pinfo,
struct files_struct *fsp)
fsp->fsp_flags.can_read = false;
fsp->fsp_flags.can_write = false;
- fsp_apply_private_ntcreatex_flags(fsp, 0);
+ /* FIXME: what about NTCREATEX_FLAG_STREAM_BASEOPEN ? */
+ fsp_apply_private_ntcreatex_flags(
+ fsp,
+ private_flags & NTCREATEX_FLAG_PERSISTENT_OPEN);
+
/*
* According to Samba4, SEC_FILE_READ_ATTRIBUTE is always granted,
*/
smb_fname_atname,
oplock_request,
lease,
+ private_flags,
sd,
&info,
fsp);
smb_fname_atname,
oplock_request,
lease,
+ private_flags,
sd,
&info,
fsp);