1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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.
This commit is contained in:
Jeremy Allison 2009-11-20 17:23:20 -08:00
parent 446ed18eb6
commit 54ba3f522b

View File

@ -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.