Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
const struct smb2_lease *lease_ptr)
{
struct smb_filename *smb_fname = NULL;
- uint32_t ucf_flags = UCF_PREP_CREATEFILE;
+ uint32_t ucf_flags = UCF_PREP_CREATEFILE |
+ (lp_posix_pathnames() ? UCF_POSIX_PATHNAMES : 0);
NTSTATUS status;
if (lease_ptr == NULL) {
info = FILE_WAS_OPENED;
} else {
struct smb_filename *smb_fname = NULL;
- uint32_t ucf_flags = UCF_PREP_CREATEFILE;
+ uint32_t ucf_flags = UCF_PREP_CREATEFILE |
+ (lp_posix_pathnames() ? UCF_POSIX_PATHNAMES : 0);
if (requested_oplock_level == SMB2_OPLOCK_LEVEL_LEASE) {
if (lease_ptr == NULL) {