Module Name: src
Committed By: christos
Date: Mon Dec 26 21:51:53 UTC 2011
Modified Files:
src/lib/libcrypt: bcrypt.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libcrypt/bcrypt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcrypt/bcrypt.c
diff -u src/lib/libcrypt/bcrypt.c:1.10 src/lib/libcrypt/bcrypt.c:1.11
--- src/lib/libcrypt/bcrypt.c:1.10 Mon May 16 06:45:56 2011
+++ src/lib/libcrypt/bcrypt.c Mon Dec 26 16:51:53 2011
@@ -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_
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";