1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

Ensure we get a real fd when opening for set file allocation.

Jeremy.
This commit is contained in:
Jeremy Allison -
parent 3c587384cb
commit 00cabb2346

View File

@ -2140,7 +2140,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
return -1;
}
new_fsp = open_file_shared(conn, fname, &sbuf,
new_fsp = open_file_shared1(conn, fname, &sbuf,FILE_WRITE_DATA,
SET_OPEN_MODE(DOS_OPEN_RDWR),
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN),
0, 0, &access_mode, &action);