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:58:58 +0000 (07:58 +0200)
commit6aa3ef01f65ac3ca0d949d4534f8bcd796f1a053
treec902240e7205edfd22b1ea7af42560f80beea19a
parent6074e92552ced541803bbed62c877e795ddddc17
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