diff options
| author | christos <christos@NetBSD.org> | 2011-12-26 21:51:53 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2011-12-26 21:51:53 +0000 |
| commit | bb4ffbccfda5a9357353d870e4fe82e0d8f952ba (patch) | |
| tree | eefa01200a570f921e93b4e83258807c008f67b7 /lib/libcrypt | |
| parent | 8d1e7b3f5fb2b75bd2be87e3c37f8f4fac435886 (diff) | |
Return ":1" on error instead of ":", so that sloppy password creation programs
don't end up confusing libc or the other way around. From Solar Designer
Diffstat (limited to 'lib/libcrypt')
| -rw-r--r-- | lib/libcrypt/bcrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypt/bcrypt.c b/lib/libcrypt/bcrypt.c index 76ab51946b5..02d59a89ba7 100644 --- a/lib/libcrypt/bcrypt.c +++ b/lib/libcrypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcrypt.c,v 1.10 2011/05/16 10:45:56 drochner Exp $ */ +/* $NetBSD: bcrypt.c,v 1.11 2011/12/26 21:51:53 christos Exp $ */ /* $OpenBSD: bcrypt.c,v 1.16 2002/02/19 19:39:36 millert Exp $ */ /* @@ -46,7 +46,7 @@ * */ #include <sys/cdefs.h> -__RCSID("$NetBSD: bcrypt.c,v 1.10 2011/05/16 10:45:56 drochner Exp $"); +__RCSID("$NetBSD: bcrypt.c,v 1.11 2011/12/26 21:51:53 christos Exp $"); #include <stdio.h> #include <stdlib.h> @@ -77,7 +77,7 @@ static void decode_base64(u_int8_t *, u_int16_t, const u_int8_t *); char *__bcrypt(const char *, const char *); /* XXX */ static char encrypted[_PASSWORD_LEN]; -static char error[] = ":"; +static char error[] = ":1"; static const u_int8_t Base64Code[] = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; |
