Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcrypt Return ":1" on error instead of ":", so that sl...



details:   https://anonhg.NetBSD.org/src/rev/9684141d8c52
branches:  trunk
changeset: 772259:9684141d8c52
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 26 21:51:53 2011 +0000

description:
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:

 lib/libcrypt/bcrypt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0c168840a8f3 -r 9684141d8c52 lib/libcrypt/bcrypt.c
--- a/lib/libcrypt/bcrypt.c     Mon Dec 26 21:22:23 2011 +0000
+++ b/lib/libcrypt/bcrypt.c     Mon Dec 26 21:51:53 2011 +0000
@@ -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 @@
 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";



Home | Main Index | Thread Index | Old Index