]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: Fix loader.conf(5) EOL validation for 'exec' lines
authorKyle Evans <kevans@FreeBSD.org>
Wed, 22 Aug 2018 01:52:55 +0000 (01:52 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 22 Aug 2018 01:52:55 +0000 (01:52 +0000)
commit9a16e110d071acb5ec3afc56169ad189f459d35e
tree0feb9974ec89f0a2a7955e19875faf8716c65564
parentd157fbd5b4b59aa863cbb82d4ad08596996d3ab0
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