mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
smbd: realign args to fd_open_atomic() in open_file()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5c67a3e8ce
commit
134114aa16
@ -1290,8 +1290,11 @@ static NTSTATUS open_file(files_struct *fsp,
|
|||||||
* Actually do the open - if O_TRUNC is needed handle it
|
* Actually do the open - if O_TRUNC is needed handle it
|
||||||
* below under the share mode lock.
|
* below under the share mode lock.
|
||||||
*/
|
*/
|
||||||
status = fd_open_atomic(conn, fsp, local_flags & ~O_TRUNC,
|
status = fd_open_atomic(conn,
|
||||||
unx_mode, p_file_created);
|
fsp,
|
||||||
|
local_flags & ~O_TRUNC,
|
||||||
|
unx_mode,
|
||||||
|
p_file_created);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
DEBUG(3,("Error opening file %s (%s) (local_flags=%d) "
|
DEBUG(3,("Error opening file %s (%s) (local_flags=%d) "
|
||||||
"(flags=%d)\n", smb_fname_str_dbg(smb_fname),
|
"(flags=%d)\n", smb_fname_str_dbg(smb_fname),
|
||||||
|
Loading…
Reference in New Issue
Block a user