From dad12f62ff1828fc4ee05cae2e2b27931e1d396b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 11 Feb 2004 15:20:41 +0000 Subject: BUG 1055; patch from SATOH Fumiyasu ; formatting fixes for 'net share' (This used to be commit 447d4fee6c245a5bbf0c33c8ffb0fd9041e51c24) --- source3/utils/net_rap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/utils/net_rap.c') diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 1f6c6e7a84..39254641ab 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -153,14 +153,14 @@ int net_rap_share_usage(int argc, const char **argv) static void long_share_fn(const char *share_name, uint32 type, const char *comment, void *state) { - d_printf("%-12.12s %-8.8s %-50.50s\n", + d_printf("%-12s %-8.8s %-50s\n", share_name, share_type[type], comment); } static void share_fn(const char *share_name, uint32 type, const char *comment, void *state) { - d_printf("%-12.12s\n", share_name); + d_printf("%s\n", share_name); } static int rap_share_delete(int argc, const char **argv) @@ -240,8 +240,9 @@ int net_rap_share(int argc, const char **argv) "\nShare name Type Description\n"\ "---------- ---- -----------\n"); ret = cli_RNetShareEnum(cli, long_share_fn, NULL); + } else { + ret = cli_RNetShareEnum(cli, share_fn, NULL); } - ret = cli_RNetShareEnum(cli, share_fn, NULL); cli_shutdown(cli); return ret; } -- cgit