s3:rpcclient: Print a new line on exit
authorAndreas Schneider <asn@samba.org>
Mon, 14 Nov 2016 10:36:03 +0000 (11:36 +0100)
committerJeremy 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

index a38c141b425ac3b6c273325309f016df3cf642ec..6cc17d15f6f0459a8587d07cae777457d7a06f25 100644 (file)
@@ -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);