]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: ignore missing WEXITED, add warning
authorRuediger Meier <rudi@localhost>
Mon, 21 Mar 2016 13:04:43 +0000 (14:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Mar 2016 20:03:41 +0000 (21:03 +0100)
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>
login-utils/sulogin.c

index b2c778a1f83136820703d6c1d00b0687ffb634c5..c6d17b3b6382995082f17e7a71bf89b3a040546d 100644 (file)
@@ -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 == '!'))