]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused "lret" variable from file_set_dosmode()
authorVolker Lendecke <vl@samba.org>
Thu, 3 Mar 2022 20:48:26 +0000 (21:48 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 4 Mar 2022 17:43:42 +0000 (17:43 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c

index f434b3875ca166a061f8f1ceec94723ca6949a7e..6b8d5c63008faa17a0e8f3d7fd9703f282e45c5d 100644 (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);