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

s3/smbd: file_set_dosmode SMB_VFS_CHMOD => SMB_VFS_FCHMOD

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Noel Power 2021-04-08 10:20:37 +01:00 committed by Noel Power
parent 9722732b18
commit 34949219ed

View File

@ -1052,7 +1052,7 @@ int file_set_dosmode(connection_struct *conn,
return -1;
}
ret = SMB_VFS_CHMOD(conn, smb_fname, unixmode);
ret = SMB_VFS_FCHMOD(smb_fname->fsp, unixmode);
if (ret == 0) {
if(!newfile || (lret != -1)) {
notify_fname(conn, NOTIFY_ACTION_MODIFIED,