diff options
author | Volker Lendecke <vl@samba.org> | 2017-10-30 16:15:03 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-04-20 11:53:10 +0200 |
commit | e19b0731070af35c3ee492c27cdfccc7cbf966f0 (patch) | |
tree | dce4101504f37b9fdca29597ecf40c5574637579 /source3/client | |
parent | 0c5e24d0f2085d836b0301272a1d54bb08f4a25d (diff) | |
download | samba-e19b0731070af35c3ee492c27cdfccc7cbf966f0.tar.gz |
smbclient: Handle ENUM_DIR in "notify" command
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13382
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
(cherry picked from commit 1452677ef0044815df0702de5424d4711e18144b)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 0ee084ae128..639d9fa4489 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4561,12 +4561,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)); |