summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_rpc_shell.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-05-21 10:27:59 +0200
committerKai Blin <kai@samba.org>2008-06-10 09:47:28 +0200
commitc51ca559c1f0f243a7dd56d138aff6a86f31738d (patch)
treefcb9c9273f1f157f8f785d5c95fbff9a3e93d273 /source3/utils/net_rpc_shell.c
parent98b9b5b7f36b7ad6eb3791a7830c9f94d7f1b49a (diff)
downloadsamba-c51ca559c1f0f243a7dd56d138aff6a86f31738d.tar.gz
samba-c51ca559c1f0f243a7dd56d138aff6a86f31738d.tar.xz
samba-c51ca559c1f0f243a7dd56d138aff6a86f31738d.zip
net: Make "net rpc" use functable3
(This used to be commit 428b56863c3963ecd041b8398d5683c92fa64307)
Diffstat (limited to 'source3/utils/net_rpc_shell.c')
-rw-r--r--source3/utils/net_rpc_shell.c5
1 files changed, 3 insertions, 2 deletions
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;
}