From: Dennis Kaarsemaker Date: Fri, 3 Nov 2017 20:44:49 +0000 (+0100) Subject: credential-libsecret: unlock locked secrets X-Git-Tag: v2.15.1~25^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c109e9bbcadb21cd6f955301f81583a74f8aa8c;p=thirdparty%2Fgit.git credential-libsecret: unlock locked secrets Credentials exposed by the secret service DBUS interface may be locked. Setting the SECRET_SEARCH_UNLOCK flag will make the secret service unlock these secrets, possibly prompting the user for credentials to do so. Without this flag, the secret is simply not loaded. Signed-off-by: Dennis Kaarsemaker Signed-off-by: Junio C Hamano --- diff --git a/contrib/credential/libsecret/git-credential-libsecret.c b/contrib/credential/libsecret/git-credential-libsecret.c index 4c56979d8a..b4750c9ee8 100644 --- a/contrib/credential/libsecret/git-credential-libsecret.c +++ b/contrib/credential/libsecret/git-credential-libsecret.c @@ -104,7 +104,7 @@ static int keyring_get(struct credential *c) items = secret_service_search_sync(service, SECRET_SCHEMA_COMPAT_NETWORK, attributes, - SECRET_SEARCH_LOAD_SECRETS, + SECRET_SEARCH_LOAD_SECRETS | SECRET_SEARCH_UNLOCK, NULL, &error); g_hash_table_unref(attributes);