From: Dave Reisner Date: Tue, 28 Feb 2012 16:45:14 +0000 (-0500) Subject: sulogin: remove CHECK_{DES,MD5} defines X-Git-Tag: v2.22-rc1~696 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1df0ee1f05b1cd532cc905d3153f0bab661ff9e1;p=thirdparty%2Futil-linux.git sulogin: remove CHECK_{DES,MD5} defines Remove these always-true defines along with their #ifdef statements. Signed-off-by: Dave Reisner --- diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index e4d59225ba..14794406b2 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -51,9 +51,6 @@ # include #endif -#define CHECK_DES 1 -#define CHECK_MD5 1 - #define F_PASSWD "/etc/passwd" #define F_SHADOW "/etc/shadow" #define BINSH "/bin/sh" @@ -179,7 +176,6 @@ static int valid(const char *pass) if (pass[0] == 0) return 1; -#if CHECK_MD5 if (pass[0] != '$') goto check_des; @@ -233,8 +229,6 @@ static int valid(const char *pass) */ return 1; check_des: -#endif -#if CHECK_DES if (strlen(pass) != 13) return 0; @@ -245,7 +239,6 @@ check_des: *s != '.' && *s != '/') return 0; } -#endif return 1; }