From: Christof Schmitt Date: Fri, 19 Jun 2020 19:45:36 +0000 (-0700) Subject: smbtorture: Use NT_STATUS_NOTIFY_ENUM_DIR instead of STATUS_NOTIFY_ENUM_DIR X-Git-Tag: ldb-2.2.0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eec333daf481b903a578be75cef62f57ba73c082;p=thirdparty%2Fsamba.git smbtorture: Use NT_STATUS_NOTIFY_ENUM_DIR instead of STATUS_NOTIFY_ENUM_DIR Signed-off-by: Christof Schmitt Reviewed-by: Gary Lockyer --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index e91e7356e3e..3ed4f1850dd 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -140,7 +140,7 @@ static bool test_valid_request(struct torture_context *torture, CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); - CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR); + CHECK_STATUS(status, NT_STATUS_NOTIFY_ENUM_DIR); /* * if the change response fits in the buffer we get @@ -191,7 +191,7 @@ static bool test_valid_request(struct torture_context *torture, CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); - CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR); + CHECK_STATUS(status, NT_STATUS_NOTIFY_ENUM_DIR); n.in.buffer_size = max_buffer_size; req = smb2_notify_send(tree, &n); @@ -205,7 +205,7 @@ static bool test_valid_request(struct torture_context *torture, CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); - CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR); + CHECK_STATUS(status, NT_STATUS_NOTIFY_ENUM_DIR); /* if the buffer size is too large, we get invalid parameter */ n.in.recursive = 0x0000; @@ -2158,7 +2158,7 @@ static bool torture_smb2_notify_overflow(struct torture_context *torture, req1 = smb2_notify_send(tree, &(notify.smb2)); status = smb2_notify_recv(req1, torture, &(notify.smb2)); - CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR); + CHECK_STATUS(status, NT_STATUS_NOTIFY_ENUM_DIR); CHECK_VAL(notify.smb2.out.num_changes, 0); done: