git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git libsecret No Unlock Dialog Issue

From
YSYaroslav Sapozhnyk <yaroslav.sapozhnik@gmail.com>
Date
Nov 3, 2017, 18:01 UTC
Message-ID
<CAOAxMp9fi3n=anfE_XCqDMtsr89pPANgCK1SL-RnOkwYjOM8hQ@mail.gmail.com>
In-Reply-To
<CAOAxMp9H6M+t5RvYiem+kXrY920ZDYvyyYt4GZ7ZnkpXVA_c0g@mail.gmail.com>
What version should include this fix? Cannot find a pr for it.
Thanks for providing the fix!

Regards, Yaroslav

On Thu, Nov 2, 2017 at 3:48 PM, Yaroslav Sapozhnyk <yaroslav.sapozhnik@gmail.com> wrote:

Show 38 quoted lines
> I've tested the code change locally and seems like it fixes the issue.
>
> Yaroslav
>
> On Thu, Nov 2, 2017 at 2:55 PM, Dennis Kaarsemaker
> <dennis@kaarsemaker.net> wrote:
>> On Thu, 2017-11-02 at 11:35 -0700, Stefan Beller wrote:
>>> On Thu, Nov 2, 2017 at 9:00 AM, Yaroslav Sapozhnyk
>>> <yaroslav.sapozhnik@gmail.com> wrote:
>>> > When using Git on Fedora with locked password store
>>> > credential-libsecret asks for username/password instead of displaying
>>> > the unlock dialog.
>>>
>>> Git as packaged by Fedora or upstream Git (which version)?
>>
>> Looking at the code: current upstream git. Looking at the documentation
>> for libsecret, this should fix it. I've not been able to test it
>> though.
>>
>> 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);
>
>
>
> --
> Regards,
> Yaroslav Sapozhnyk
-- 
Regards,
Yaroslav Sapozhnyk
Previous: Yaroslav SapozhnykNext: Dennis Kaarsemaker
Message 6 of 8 in “Git libsecret No Unlock Dialog Issue”
  1. Yaroslav SapozhnykNov 2, 2017
  2. Stefan BellerNov 2, 2017
  3. Yaroslav SapozhnykNov 2, 2017
  4. Dennis KaarsemakerNov 2, 2017
  5. Yaroslav SapozhnykNov 2, 2017
  6. Yaroslav SapozhnykNov 3, 2017
  7. credential-libsecret: unlock locked secretsDennis Kaarsemaker, Nov 3, 2017
  8. Mantas MikulėnasNov 6, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.