summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-10-30 16:15:03 +0100
committerJeremy Allison <jra@samba.org>2018-04-05 04:05:52 +0200
commit1452677ef0044815df0702de5424d4711e18144b (patch)
tree2bd49fd8102027f1f47d33572f43ecfa01be01c1 /source3/client
parentabfe482828e8c1dc233d67657a4d11a91a731f70 (diff)
downloadsamba-1452677ef0044815df0702de5424d4711e18144b.tar.gz
smbclient: Handle ENUM_DIR in "notify" command
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 5 04:05:52 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 23ed02d9cc0..1429b44e9cf 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));