diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-28 03:31:59 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-28 03:31:59 +0400 |
commit | de9ec929586fd88d1efbaea3f6cf5bf5b57d391f (patch) | |
tree | 59add578b824dd91330e04ccd52256ec9d6144fb /libbb/pw_encrypt.c | |
parent | ce97960a6e7da4d9fc7a003c9138aec5e4e55a96 (diff) |
usage.h: fix compile-time bugs exposed by previous change
Diffstat (limited to 'libbb/pw_encrypt.c')
-rw-r--r-- | libbb/pw_encrypt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c index d6b2fe28d..f6085f3d2 100644 --- a/libbb/pw_encrypt.c +++ b/libbb/pw_encrypt.c @@ -11,13 +11,12 @@ #include <string.h> #include <crypt.h> - char *pw_encrypt(const char *clear, const char *salt) { static char cipher[128]; char *cp; -#ifdef CONFIG_FEATURE_SHA1_PASSWORDS +#if 0 /* was CONFIG_FEATURE_SHA1_PASSWORDS, but there is no such thing??? */ if (strncmp(salt, "$2$", 3) == 0) { return sha1_crypt(clear); } @@ -29,4 +28,3 @@ char *pw_encrypt(const char *clear, const char *salt) safe_strncpy(cipher, cp, sizeof(cipher)); return cipher; } - |