diff options
author | Tim Potter <tpot@samba.org> | 2001-05-04 04:15:48 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-04 04:15:48 +0000 |
commit | 0eaa469aa87339e141453565d4f7129080d4392d (patch) | |
tree | 48983294f25ef4d17702cc2e78185d51cbc86aca /source3/rpcclient | |
parent | 1bbc3d193bb86c4b1d4877237437eb7d6eb78b57 (diff) | |
download | samba-0eaa469aa87339e141453565d4f7129080d4392d.tar.gz samba-0eaa469aa87339e141453565d4f7129080d4392d.tar.bz2 samba-0eaa469aa87339e141453565d4f7129080d4392d.zip |
More usability fixes.
(This used to be commit 3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 787545173b..dc93c0536b 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/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); |