libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / git / patches / 0009-Use-getpassphrase-instead-of-getpass-when-prompting-.patch
blobb7243950f73925b9abd5bc9f661052e0aa791744
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
5 passwords
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.
11 Mantis ID 4943
13 Signed-off-by: Ben Walton <bwalton@opencsw.org>
14 ---
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
20 @@ -596,7 +596,7 @@
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)