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:
69329cf
)
s3:rpcclient: Print a new line on exit
author
Andreas Schneider
<asn@samba.org>
Mon, 14 Nov 2016 10:36:03 +0000
(11:36 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 15 Nov 2016 23:20:06 +0000
(
00:20
+0100)
If you press 'ctrl+d' print a new line for the shell.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/rpcclient.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/rpcclient.c
b/source3/rpcclient/rpcclient.c
index a38c141b425ac3b6c273325309f016df3cf642ec..6cc17d15f6f0459a8587d07cae777457d7a06f25 100644
(file)
--- a/
source3/rpcclient/rpcclient.c
+++ b/
source3/rpcclient/rpcclient.c
@@
-1229,8
+1229,10
@@
out_free:
line = smb_readline("rpcclient $> ", NULL, completion_fn);
- if (line == NULL)
+ if (line == NULL) {
+ printf("\n");
break;
+ }
if (line[0] != '\n')
process_cmd(rpcclient_auth_info, cli, binding, line);