[systemd-devel] "Unknown lvalue '' in section 'Service'"

Mantas Mikulėnas grawity at gmail.com
Thu Jul 18 08:46:59 UTC 2019


On Thu, Jul 18, 2019 at 11:34 AM Ulrich Windl <
Ulrich.Windl at rz.uni-regensburg.de> wrote:

> Hi!
>
> I noticed that a line of "=======" in "[Service]" cases the message "
> Unknown lvalue '' in section 'Service'".
> (systemd 228)
>
> Shouldn't that be "Parse error at '=======' in section 'Service'"?
>

Arguably it isn't a parse error – the keyfile parser successfully
recognizes the line as assigning the value "======" to the key "". It's
only later when the parsed results are interpreted that each key is matched
to an internal handler.

The error message *could* be clearer if all such errors had a common "Parse
error:" prefix, I guess. (And what's the point of calling it an 'lvalue'
anyway?...)

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190718/03c9a427/attachment.html>


More information about the systemd-devel mailing list