From: Tim Prouty Date: Mon, 1 Dec 2008 22:13:14 +0000 (-0800) Subject: s3: Fix FILE_FLAG_POSIX_SEMANTICS handling underneath SMB_VFS_CREATE_FILE X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=dbfcd3f97c02a19c48360b4f477570997f8aa870;hp=58440122853b65048793efd90ee45916e25c08c1 s3: Fix FILE_FLAG_POSIX_SEMANTICS handling underneath SMB_VFS_CREATE_FILE --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 55aec168406..41a1fb371d5 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2861,7 +2861,8 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } /* Can't open a temp directory. IFS kit test. */ - if (file_attributes & FILE_ATTRIBUTE_TEMPORARY) { + if (!(file_attributes & FILE_FLAG_POSIX_SEMANTICS) && + (file_attributes & FILE_ATTRIBUTE_TEMPORARY)) { status = NT_STATUS_INVALID_PARAMETER; goto fail; } @@ -3260,7 +3261,6 @@ NTSTATUS create_file_default(connection_struct *conn, if (file_attributes & FILE_FLAG_POSIX_SEMANTICS) { case_state = set_posix_case_semantics(talloc_tos(), conn); - file_attributes &= ~FILE_FLAG_POSIX_SEMANTICS; } if (create_file_flags & CFF_DOS_PATH) {