diff options
author | Dave Reisner | 2012-02-28 17:45:14 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-12 11:17:33 +0100 |
commit | 1df0ee1f05b1cd532cc905d3153f0bab661ff9e1 (patch) | |
tree | f41636816e807f09d10c2b40dfc29a06b041bba1 /login-utils/sulogin.c | |
parent | sulogin: replace older signal() with sigaction() (diff) | |
download | kernel-qcow2-util-linux-1df0ee1f05b1cd532cc905d3153f0bab661ff9e1.tar.gz kernel-qcow2-util-linux-1df0ee1f05b1cd532cc905d3153f0bab661ff9e1.tar.xz kernel-qcow2-util-linux-1df0ee1f05b1cd532cc905d3153f0bab661ff9e1.zip |
sulogin: remove CHECK_{DES,MD5} defines
Remove these always-true defines along with their #ifdef statements.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'login-utils/sulogin.c')
-rw-r--r-- | login-utils/sulogin.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index e4d59225b..14794406b 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -51,9 +51,6 @@ # include <selinux/get_context_list.h> #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; } |