From 54ba3f522bd26919183278643b417e9632524be9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 20 Nov 2009 17:23:20 -0800 Subject: [PATCH] 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. --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 1f48daf9048..98984b86951 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. -- 2.34.1