]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use NT_STATUS_NOTIFY_CLEANUP instead of STATUS_NOTIFY_CLEANUP
authorChristof Schmitt <cs@samba.org>
Fri, 19 Jun 2020 19:38:59 +0000 (12:38 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 22 Jun 2020 12:07:37 +0000 (12:07 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/smbd/close.c
source3/smbd/notify.c

index da28559e49b9c5fb09091c1a8993b3950509cdae..3169c8d548754131d6d7d3536e1e85e3d54bbb65 100644 (file)
@@ -1117,7 +1117,7 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
        NTSTATUS notify_status;
 
        if (fsp->conn->sconn->using_smb2) {
-               notify_status = STATUS_NOTIFY_CLEANUP;
+               notify_status = NT_STATUS_NOTIFY_CLEANUP;
        } else {
                notify_status = NT_STATUS_OK;
        }
index b36a4c0003a8cfd8cb0a286ff7704bdbb72e478f..eb6317b7e8ab9856b103262d97fb41d70a896f15 100644 (file)
@@ -411,11 +411,11 @@ static void smbd_notify_cancel_by_map(struct notify_mid_map *map)
                }
 
                if (!NT_STATUS_IS_OK(sstatus)) {
-                       notify_status = STATUS_NOTIFY_CLEANUP;
+                       notify_status = NT_STATUS_NOTIFY_CLEANUP;
                } else if (smb2req->tcon == NULL) {
-                       notify_status = STATUS_NOTIFY_CLEANUP;
+                       notify_status = NT_STATUS_NOTIFY_CLEANUP;
                } else if (!NT_STATUS_IS_OK(smb2req->tcon->status)) {
-                       notify_status = STATUS_NOTIFY_CLEANUP;
+                       notify_status = NT_STATUS_NOTIFY_CLEANUP;
                }
        }