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:
parent
d0fced7141
commit
fad211a706
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user