* 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>
char hostaddress[16]; /* remote address */
pid_t pid;
- int quiet; /* 1 if hush file exists */
- unsigned int remote:1, /* login -h */
+ unsigned int quiet:1, /* hush file exists */
+ remote:1, /* login -h */
nohost:1, /* login -H */
noauth:1, /* login -f */
keep_env:1; /* login -p */
sleepexit(EXIT_FAILURE);
}
- cxt.quiet = get_hushlogin_status(pwd, 1);
+ cxt.quiet = get_hushlogin_status(pwd, 1) == 1 ? 1 : 0;
/*
* Open PAM session (after successful authentication and account check).