]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: cleanup get_hushlogin_status() use
authorKarel Zak <kzak@redhat.com>
Tue, 16 Jun 2020 12:00:58 +0000 (14:00 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Jun 2020 12:00:58 +0000 (14:00 +0200)
commit111b395aedf59d8d15933e82e5d1d6bce80fe3fa
tree31d79d235cb37551d26eec70dc86f9a1a97a1b45
parent31d79197c01461397e5fd6b69830be3b69f6b2c5
login: cleanup get_hushlogin_status() use

* use 1 bit for context->quiet
* get_hushlogin_status() return -1 on error, make sure we do not
  interpret it as "hush mode enabled"

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c