summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorRuediger Meier2016-03-21 14:04:43 +0100
committerKarel Zak2016-03-21 21:03:41 +0100
commit36f1200851755b15d6c70ed9e4de6db9c9392d2e (patch)
tree45437681809626cc9ae7c7ce4268eae24b803622 /login-utils
parentbuild-sys: pylibmount, mount context is Linux only (diff)
downloadkernel-qcow2-util-linux-36f1200851755b15d6c70ed9e4de6db9c9392d2e.tar.gz
kernel-qcow2-util-linux-36f1200851755b15d6c70ed9e4de6db9c9392d2e.tar.xz
kernel-qcow2-util-linux-36f1200851755b15d6c70ed9e4de6db9c9392d2e.zip
sulogin: ignore missing WEXITED, add warning
This happens on Debian kFreeBSD and probably on Hurd too since cde7699c. One should review this issue to fix it properly. CC: Werner Fink <werner@suse.de> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/sulogin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index b2c778a1f..c6d17b3b6 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -80,6 +80,11 @@ static volatile sig_atomic_t sigchild;
# define IUCLC 0
#endif
+#ifndef WEXITED
+# warning "WEXITED is missing, sulogin may not work as expected"
+# define WEXITED 0
+#endif
+
static int locked_account_password(const char *passwd)
{
if (passwd && (*passwd == '*' || *passwd == '!'))