From 1452677ef0044815df0702de5424d4711e18144b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 30 Oct 2017 16:15:03 +0100 Subject: [PATCH] smbclient: Handle ENUM_DIR in "notify" command Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Apr 5 04:05:52 CEST 2018 on sn-devel-144 --- source3/client/client.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index 23ed02d9cc09..1429b44e9cf1 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4568,12 +4568,17 @@ static int cmd_notify(void) } while (1) { - uint32_t i, num_changes; - struct notify_change *changes; + uint32_t i; + uint32_t num_changes = 0; + struct notify_change *changes = NULL; status = cli_notify(cli, fnum, 1000, FILE_NOTIFY_CHANGE_ALL, true, talloc_tos(), &num_changes, &changes); + if (NT_STATUS_EQUAL(status, STATUS_NOTIFY_ENUM_DIR)) { + printf("NOTIFY_ENUM_DIR\n"); + status = NT_STATUS_OK; + } if (!NT_STATUS_IS_OK(status)) { d_printf("notify returned %s\n", nt_errstr(status)); -- 2.34.1