mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
fixed a bug in the readline support
This commit is contained in:
parent
64692f292f
commit
b0a6962250
@ -3654,12 +3654,13 @@ static BOOL process(char *base_directory)
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
|
||||
{
|
||||
pstring prompt;
|
||||
pstring promptline;
|
||||
|
||||
/* Read input using GNU Readline */
|
||||
|
||||
slprintf(prompt, sizeof(prompt) - 1, "smb: %s> ", CNV_LANG(cur_dir));
|
||||
if (!readline(prompt))
|
||||
slprintf(promptline,
|
||||
sizeof(promptline) - 1, "smb: %s> ", CNV_LANG(cur_dir));
|
||||
if (!readline(promptline))
|
||||
break;
|
||||
|
||||
/* Copy read line to samba buffer */
|
||||
|
Loading…
Reference in New Issue
Block a user