]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: apply defaults if /etc/login.defs doesn't exist
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 19 Feb 2018 02:33:16 +0000 (18:33 -0800)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2018 11:59:37 +0000 (12:59 +0100)
commit2f62cf3552d48f518313bd6265bad6763e2b643b
treebae3880898ec3a540419bd453666bf4942327a8e
parent574432f889ce3de126bbc6736bcbd22ee170ff82
meson: apply defaults if /etc/login.defs doesn't exist

Apply defaults for system_{uid,gid}_max even if the /etc/login.defs file
doesn't exist (e.g. in Clear Linux with no changes).

awk returns an empty string in case the file doesn't exist, causing meson to
fail in to_int(). So set the default if output is empty. This makes the BEGIN{}
blocks unnecessary, so remove them.
meson.build