Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen make getpass and getpass_r print a newline like...
details: https://anonhg.NetBSD.org/src/rev/359b8641a0c9
branches: trunk
changeset: 779406:359b8641a0c9
user: christos <christos%NetBSD.org@localhost>
date: Sat May 26 19:34:16 2012 +0000
description:
make getpass and getpass_r print a newline like they did before.
diffstat:
lib/libc/gen/getpass.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 879e10367225 -r 359b8641a0c9 lib/libc/gen/getpass.c
--- a/lib/libc/gen/getpass.c Sat May 26 06:59:25 2012 +0000
+++ b/lib/libc/gen/getpass.c Sat May 26 19:34:16 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getpass.c,v 1.26 2012/05/02 14:36:07 christos Exp $ */
+/* $NetBSD: getpass.c,v 1.27 2012/05/26 19:34:16 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getpass.c,v 1.26 2012/05/02 14:36:07 christos Exp $");
+__RCSID("$NetBSD: getpass.c,v 1.27 2012/05/26 19:34:16 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -319,7 +319,7 @@
char *
getpass_r(const char *prompt, char *buf, size_t len)
{
- return getpassfd(prompt, buf, len, NULL, 0, 0);
+ return getpassfd(prompt, buf, len, NULL, GETPASS_ECHO_NL, 0);
}
char *
Home |
Main Index |
Thread Index |
Old Index