Skip to content

Commit 9c109e9

Browse files
seveasgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 39aaab1 commit 9c109e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/credential/libsecret/git-credential-libsecret.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static int keyring_get(struct credential *c)
104104
items = secret_service_search_sync(service,
105105
SECRET_SCHEMA_COMPAT_NETWORK,
106106
attributes,
107-
SECRET_SEARCH_LOAD_SECRETS,
107+
SECRET_SEARCH_LOAD_SECRETS | SECRET_SEARCH_UNLOCK,
108108
NULL,
109109
&error);
110110
g_hash_table_unref(attributes);

0 commit comments

Comments
 (0)