chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:54:01 +0000 (07:54 +0200)
commit19c61652d55203e153a7da0d795a9c6db9dc7a4b
treeb7dbc8777afb5e677b02e97239b29be534eb07fb
parentcf6df4681f466a9716e2ae5a0dfaf9f1b96b6145
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.

(cherry picked from commit 2f62cf3552d48f518313bd6265bad6763e2b643b)
meson.build