1 From fe054b8cbe161d01a66637976c1cabad0ce1c973 Mon Sep 17 00:00:00 2001
2 From: Ben Walton <bwalton@opencsw.org>
3 Date: Mon, 30 Jul 2012 18:13:23 +0200
4 Subject: [PATCH] Use getpassphrase instead of getpass when prompting for
7 The legacy getpass function returns at most 9 characters, including
8 null termination which means an 8-character password. Instead, use
9 getpassphrase which allows up to 257 characters.
13 Signed-off-by: Ben Walton <bwalton@opencsw.org>
15 compat/terminal.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 --- git-2.45.1/compat/terminal.c.orig
19 +++ git-2.45.1/compat/terminal.c
22 char *git_terminal_prompt(const char *prompt, int echo)
24 - return getpass(prompt);
25 + return getpassphrase(prompt);
28 int read_key_without_echo(struct strbuf *buf)