Merge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:
Only attempt to el_parse() a command unknown by the default parser if editing is enabled. PR: bin/100089 MFC after: 3 days
This commit is contained in:
parent
b1b28f51de
commit
913c672f8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219081
@ -707,6 +707,7 @@ cmdscanner(void)
|
||||
* such commands as invalid.
|
||||
*/
|
||||
if (strchr(margv[0], ':') != NULL ||
|
||||
!editing ||
|
||||
el_parse(el, margc, (const char **)margv) != 0)
|
||||
#endif /* !NO_EDITCOMPLETE */
|
||||
fputs("?Invalid command.\n", ttyout);
|
||||
|
Loading…
Reference in New Issue
Block a user