mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
07c4967d6c
commit
b36c6214f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user