diff options
author | Andreas Schneider <asn@samba.org> | 2016-11-14 11:36:03 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-11-16 00:20:06 +0100 |
commit | 9347a2c9548df0d134ad105f92e4183ce04d7517 (patch) | |
tree | 2a6cdebb0fa62fca1c42a347f8e500364c558467 /source3/rpcclient | |
parent | 69329cf22c7a7cc620f14e7a94eb9a4419723f49 (diff) | |
download | samba-9347a2c9548df0d134ad105f92e4183ce04d7517.tar.gz |
s3:rpcclient: Print a new line on exit
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>
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 a38c141b425..6cc17d15f6f 100644 --- 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); |