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

s3: smbd: When requesting posix open in open_file_ntcreate() we need to set all posix flags.

Fixes POSIX rename problem introduced in d698cec1c7

Signed-off-by: Ralph Boehme <rb@sernet.de>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Dec 14 02:03:12 CET 2015 on sn-devel-104
This commit is contained in:
Ralph Boehme 2015-12-13 09:52:50 -08:00 committed by Jeremy Allison
parent 07c4967d6c
commit b36c6214f0

View File

@ -2704,7 +2704,9 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
fsp->access_mask = open_access_mask; /* We change this to the
* requested access_mask after
* the open is done. */
fsp->posix_flags |= posix_open ? FSP_POSIX_FLAGS_OPEN : 0;
if (posix_open) {
fsp->posix_flags |= FSP_POSIX_FLAGS_ALL;
}
if (timeval_is_zero(&request_time)) {
request_time = fsp->open_time;