summaryrefslogtreecommitdiffstats
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2008-12-01 14:13:14 -0800
committerTim Prouty <tprouty@samba.org>2008-12-03 17:51:55 -0800
commitdbfcd3f97c02a19c48360b4f477570997f8aa870 (patch)
tree400dc35962f338f5af5c4e76967d9171e3884701 /source3/smbd/open.c
parent58440122853b65048793efd90ee45916e25c08c1 (diff)
downloadsamba-dbfcd3f97c02a19c48360b4f477570997f8aa870.tar.gz
samba-dbfcd3f97c02a19c48360b4f477570997f8aa870.tar.xz
samba-dbfcd3f97c02a19c48360b4f477570997f8aa870.zip
s3: Fix FILE_FLAG_POSIX_SEMANTICS handling underneath SMB_VFS_CREATE_FILE
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c4
1 files changed, 2 insertions, 2 deletions
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) {