From c51ca559c1f0f243a7dd56d138aff6a86f31738d Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 21 May 2008 10:27:59 +0200 Subject: net: Make "net rpc" use functable3 (This used to be commit 428b56863c3963ecd041b8398d5683c92fa64307) --- source3/utils/net_rpc_shell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/utils/net_rpc_shell.c') diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c index f2fa8b7e014..dee7a9f9c7e 100644 --- a/source3/utils/net_rpc_shell.c +++ b/source3/utils/net_rpc_shell.c @@ -210,8 +210,9 @@ int net_rpc_shell(struct net_context *c, int argc, const char **argv) NTSTATUS status; struct rpc_sh_ctx *ctx; - if (argc != 0) { - d_fprintf(stderr, "usage: net rpc shell\n"); + if (argc != 0 || c->display_usage) { + d_printf("Usage:\n" + "net rpc shell\n"); return -1; } -- cgit