From 48324fa61b33211bf589f65883373407f81d6f41 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 18 Aug 1999 23:51:02 +0000 Subject: Don't print out a message in svcenum command for the ERRmoredata error. (This used to be commit 92ebd8f12ce4997e77eee22c3bb0c599daa44500) --- source3/rpc_client/cli_svcctl.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/rpc_client/cli_svcctl.c b/source3/rpc_client/cli_svcctl.c index 5e8a3952a5..ed3ddaf9d3 100644 --- a/source3/rpc_client/cli_svcctl.c +++ b/source3/rpc_client/cli_svcctl.c @@ -200,10 +200,13 @@ BOOL svc_enum_svcs(struct cli_state *cli, uint16 fnum, if (p && r_o.dos_status != 0) { fstring errmsg; - smb_safe_err_msg(ERRDOS, r_o.dos_status, - errmsg, sizeof(errmsg)); - /* report error code */ - DEBUG(0,("SVC_ENUM_SVCS_STATUS: %s\n", errmsg)); + + if (r_o.dos_status != ERRmoredata) { + smb_safe_err_msg(ERRDOS, r_o.dos_status, + errmsg, sizeof(errmsg)); + /* report error code */ + DEBUG(0,("SVC_ENUM_SVCS_STATUS: %s\n", errmsg)); + } p = r_o.dos_status == ERRmoredata; } -- cgit