git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbc3d1
)
More usability fixes.
author
Tim Potter
<tpot@samba.org>
Fri, 4 May 2001 04:15:48 +0000
(
04:15
+0000)
committer
Tim Potter
<tpot@samba.org>
Fri, 4 May 2001 04:15:48 +0000
(
04:15
+0000)
(This used to be commit
3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81
)
source3/rpcclient/rpcclient.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/rpcclient.c
b/source3/rpcclient/rpcclient.c
index 787545173be3dd7f9929f6c8ec61432ddb5ecc89..dc93c0536bbe65ae118bb093f363b57b5c4a016f 100644
(file)
--- 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);