From: James H. <jam...@be...> - 2009-10-30 12:43:22
|
The following patch prevents adding of blank lines to command history in conio. I often hit enter at the console just to see if bacula has anything to tell me, and the blank lines in the history don't really do anyone any good I think. James diff --git a/bacula/src/console/conio.c b/bacula/src/console/conio.c index 157df55..a726fe0 100755 --- a/bacula/src/console/conio.c +++ b/bacula/src/console/conio.c @@ -630,7 +630,8 @@ done: curline[cl++] = EOS; /* terminate */ bstrncpy(string,curline,length); /* return line to caller */ /* Note, put line zaps curline */ - putline(curline,cl); /* save line for posterity */ + if (strlen(curline)) + putline(curline,cl); /* save line for posterity */ return 0; /* give it to him/her */ } |