mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
loader: loader_lua can run command_more twice
When we quit pager, the return value 1 is returned and command_more()
interprets it as error.
when lua loader gets error from command, it will try to
interpret it once more, so we get the same file shown once more.
There is no reason why we should return error from command_more().
(cherry picked from commit 7b0d05d56d)
This commit is contained in:
parent
ff5f61e07d
commit
0e98ea6423
1 changed files with 1 additions and 4 deletions
|
|
@ -484,10 +484,7 @@ command_more(int argc, char *argv[])
|
|||
}
|
||||
pager_close();
|
||||
|
||||
if (res == 0)
|
||||
return (CMD_OK);
|
||||
else
|
||||
return (CMD_ERROR);
|
||||
return (CMD_OK);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue