summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-08-18 23:51:02 +0000
committerTim Potter <tpot@samba.org>1999-08-18 23:51:02 +0000
commit48324fa61b33211bf589f65883373407f81d6f41 (patch)
tree43a75cedb09c0410e99d9d07b338ba2a299fd3ae /source3/rpc_client
parentb3f59299a089b5860653fea1bee82253ec18cc87 (diff)
downloadsamba-48324fa61b33211bf589f65883373407f81d6f41.tar.gz
samba-48324fa61b33211bf589f65883373407f81d6f41.tar.bz2
samba-48324fa61b33211bf589f65883373407f81d6f41.zip
Don't print out a message in svcenum command for the ERRmoredata
error. (This used to be commit 92ebd8f12ce4997e77eee22c3bb0c599daa44500)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_svcctl.c11
1 files changed, 7 insertions, 4 deletions
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;
}