rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
authorGünther Deschner <gd@samba.org>
Wed, 23 Apr 2008 08:55:26 +0000 (10:55 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 24 Apr 2008 20:01:51 +0000 (22:01 +0200)
Guenther
(This used to be commit c15b5d73badafdc93066197aefaaaa72e37a8b99)

source3/rpcclient/cmd_samr.c

index 9220c20166b6b4a01882ed45f31907b30cffb21e..cc92fef7e5636bf3a8312e44c833af9f2ad38fd1 100644 (file)
@@ -2612,8 +2612,9 @@ static NTSTATUS cmd_samr_get_dispinfo_idx(struct rpc_pipe_client *cli,
                                                        &name,
                                                        &idx);
 
-       if (NT_STATUS_IS_OK(status)) {
-               printf("idx: %d\n", idx);
+       if (NT_STATUS_IS_OK(status) ||
+           NT_STATUS_EQUAL(status, NT_STATUS_NO_MORE_ENTRIES)) {
+               printf("idx: %d (0x%08x)\n", idx, idx);
        }
  done: