summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-20 17:23:20 -0800
committerJeremy Allison <jra@samba.org>2009-11-20 17:23:20 -0800
commit54ba3f522bd26919183278643b417e9632524be9 (patch)
tree2fa0e94a9df871661e46c20ded4763f8912e47ac /source3/smbd
parent446ed18eb6eeec06b4f81aaf89f75db32472defb (diff)
downloadsamba-54ba3f522bd26919183278643b417e9632524be9.tar.gz
samba-54ba3f522bd26919183278643b417e9632524be9.tar.bz2
samba-54ba3f522bd26919183278643b417e9632524be9.zip
Fix logic bug where high bits tests was being
done on both Windows and POSIX mkdirs instead of only on Windows mkdir (as intended). The variable "file_attributes" had already had FILE_FLAG_POSIX_SEMANTICS removed above in the function if it had already been set. Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 1f48daf904..98984b8695 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2383,7 +2383,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
smb_dname->base_name, mode);
}
- if (!(file_attributes & FILE_FLAG_POSIX_SEMANTICS)) {
+ if (!posix_open) {
/*
* Check if high bits should have been set,
* then (if bits are missing): add them.