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

smbd: Remove unused "lret" variable from file_set_dosmode()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2022-03-03 21:48:26 +01:00 committed by Ralph Boehme
parent f60ca2e2f3
commit 2976177005

View File

@ -923,7 +923,7 @@ int file_set_dosmode(connection_struct *conn,
int mask=0;
mode_t tmp;
mode_t unixmode;
int ret = -1, lret = -1;
int ret = -1;
NTSTATUS status;
if (!CAN_WRITE(conn)) {
@ -1039,7 +1039,7 @@ int file_set_dosmode(connection_struct *conn,
ret = SMB_VFS_FCHMOD(smb_fname->fsp, unixmode);
if (ret == 0) {
if(!newfile || (lret != -1)) {
if (!newfile) {
notify_fname(conn, NOTIFY_ACTION_MODIFIED,
FILE_NOTIFY_CHANGE_ATTRIBUTES,
smb_fname->base_name);