From: Ruediger Meier Date: Mon, 21 Mar 2016 13:04:43 +0000 (+0100) Subject: sulogin: ignore missing WEXITED, add warning X-Git-Tag: v2.28-rc2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f1200851755b15d6c70ed9e4de6db9c9392d2e;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Ruediger Meier --- diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index b2c778a1f8..c6d17b3b63 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 == '!'))