]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: Fix loader.conf(5) EOL validation for 'exec' lines
authorkevans <kevans@FreeBSD.org>
Wed, 22 Aug 2018 01:52:55 +0000 (01:52 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 22 Aug 2018 01:52:55 +0000 (01:52 +0000)
commit42ea4d4b088cd22e51fe93a3ea5b4b9d8cc06e1c
tree0feb9974ec89f0a2a7955e19875faf8716c65564
parent8f3d6467d4d051e24fdfb47b4842eb1722a10b74
lualoader: Fix loader.conf(5) EOL validation for 'exec' lines

This includes some light rework to simplify the line parsing, as well.  If
we hit a line match, we'll always either use the line and move on to the
next line, or we'll spew out malformed line errors.

We had multiple spots to output the error and set the status based on
whether we had a non-nil first capture group or failed EOL validation, but
it was always the same error.  Light rework entails a small label jump to
skip error handling and elimination of 'found' local.
stand/lua/config.lua