summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-04 04:15:48 +0000
committerTim Potter <tpot@samba.org>2001-05-04 04:15:48 +0000
commit3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81 (patch)
tree45757cdce925786f574afbd561b3ea71457d3a61
parent37cdf37fee8414183c4ecb49e68a468ad235787d (diff)
downloadsamba-3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81.tar.gz
samba-3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81.tar.xz
samba-3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81.zip
More usability fixes.
-rw-r--r--source/rpcclient/rpcclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index 787545173be..dc93c0536bb 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/rpcclient/rpcclient.c
@@ -408,6 +408,9 @@ static uint32 process_cmd(struct cli_state *cli, char *cmd)
char *p = cmd;
uint32 result=0;
+ if (cmd[strlen(cmd) - 1] == '\n')
+ cmd[strlen(cmd) - 1] = '\0';
+
if (!next_token(&p, buf, " ", sizeof(buf))) {
return 0;
}
@@ -633,7 +636,6 @@ static void usage(char *pname)
/* There are no pointers in ntuser_creds struct so zero it out */
ZERO_STRUCTP (&creds);
-
/* Load command lists */
add_command_set(rpcclient_commands);
add_command_set(separator_command);