From 1ca6e991415bd1650c1a7e5849d749a8c2e81bc6 Mon Sep 17 00:00:00 2001 From: Vicentiu Ciorbaru Date: Wed, 13 Jul 2011 23:01:35 +0300 Subject: s3-net: Added net rpc conf listshares command to net rpc conf The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam --- source3/utils/net_rpc_conf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c index 365d0ee8bb..534ca9bd8f 100644 --- a/source3/utils/net_rpc_conf.c +++ b/source3/utils/net_rpc_conf.c @@ -459,6 +459,11 @@ error: } +static int rpc_conf_listshares(struct net_context *c, int argc, + const char **argv) +{ + return 0; +} static int rpc_conf_list(struct net_context *c, int argc, const char **argv) @@ -482,6 +487,15 @@ int net_rpc_conf(struct net_context *c, int argc, " Dump the complete remote configuration in smb.conf " "like format.") + }, + { + "listshares", + rpc_conf_listshares, + NET_TRANSPORT_RPC, + N_("List the remote share names."), + N_("net rpc conf list\n" + " List the remote share names.") + }, {NULL, NULL, 0, NULL, NULL} }; -- cgit