jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / libsecret / patches / 01-getpass.patch
blob400f0cb7b4614c8881577fab9f3ebb5b861e4cdd
1 Replace getpass() with getpassphrase(), to avoid sctrict password length
2 limitation. The former one, as provided in Solaris libc, only accepts 8
3 characters, while latter one accepts 256 characters. See getpass(3C) manual
4 page.
6 On Linux, the problem doesn't exist, the glibc version of getpass() is
7 unlimited. To match it on Solaris, we would have to provide own function, but
8 then the secret-tool internally doesn't care too much about long passwords too,
9 e.g. the function that reads password from standard input (read_password_stdin)
10 limits the input by reading into single 8k buffer.
12 --- libsecret-0.21.4/tool/secret-tool.c.orig
13 +++ libsecret-0.21.4/tool/secret-tool.c
14 @@ -286,7 +286,7 @@
16 gchar *password;
18 - password = getpass ("Password: ");
19 + password = getpassphrase ("Password: ");
20 return secret_value_new_full (password, -1, "text/plain",
21 (GDestroyNotify)secret_password_wipe);