1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3: smbd: file_set_dosmode(), can_write_to_file() -> can_write_to_fsp().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-06-02 12:01:17 -07:00 committed by Ralph Boehme
parent d0fced7141
commit fad211a706

View File

@ -1074,9 +1074,7 @@ int file_set_dosmode(connection_struct *conn,
bits on a file. Just like file_ntimes below.
*/
if (!can_write_to_file(conn,
conn->cwd_fsp,
smb_fname))
if (!can_write_to_fsp(smb_fname->fsp))
{
errno = EACCES;
return -1;