mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
Fix the spinning bug for 'net rpc user' as well - there are more errors in
this world than 'status more entires'... Also move all the cases to 'NT_STATUS_EQUAL()' to test it. Andrew Bartlett (This used to be commit b4645bf0661dadcd077b21bb6f6452ed8b2eb726)
This commit is contained in:
parent
2746a909b2
commit
a0af88e8c1
@ -844,7 +844,7 @@ rpc_user_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
|
|||||||
else
|
else
|
||||||
printf("%s\n", user);
|
printf("%s\n", user);
|
||||||
}
|
}
|
||||||
} while (!NT_STATUS_IS_OK(result));
|
} while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
|
||||||
|
|
||||||
done:
|
done:
|
||||||
return result;
|
return result;
|
||||||
@ -955,7 +955,7 @@ rpc_group_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
|
|||||||
else
|
else
|
||||||
printf("%-21.21s\n", groups[i].acct_name);
|
printf("%-21.21s\n", groups[i].acct_name);
|
||||||
}
|
}
|
||||||
} while (NT_STATUS_V(result) == NT_STATUS_V(STATUS_MORE_ENTRIES));
|
} while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
|
||||||
/* query domain aliases */
|
/* query domain aliases */
|
||||||
do {
|
do {
|
||||||
result = cli_samr_enum_als_groups(cli, mem_ctx, &domain_pol,
|
result = cli_samr_enum_als_groups(cli, mem_ctx, &domain_pol,
|
||||||
@ -970,7 +970,7 @@ rpc_group_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
|
|||||||
else
|
else
|
||||||
printf("%-21.21s\n", groups[i].acct_name);
|
printf("%-21.21s\n", groups[i].acct_name);
|
||||||
}
|
}
|
||||||
} while (NT_STATUS_V(result) == NT_STATUS_V(STATUS_MORE_ENTRIES));
|
} while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
|
||||||
cli_samr_close(cli, mem_ctx, &domain_pol);
|
cli_samr_close(cli, mem_ctx, &domain_pol);
|
||||||
/* Get builtin policy handle */
|
/* Get builtin policy handle */
|
||||||
|
|
||||||
@ -994,7 +994,7 @@ rpc_group_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
|
|||||||
else
|
else
|
||||||
printf("%s\n", groups[i].acct_name);
|
printf("%s\n", groups[i].acct_name);
|
||||||
}
|
}
|
||||||
} while (NT_STATUS_V(result) == NT_STATUS_V(STATUS_MORE_ENTRIES));
|
} while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
|
||||||
|
|
||||||
done:
|
done:
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user