git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 17:28 UTC

Re: [PATCH v2 2/2] wincred: improve compatibility with windows versions

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Sep 10, 2014, 22:32 UTC
Message-ID
<CABPQNSbp92V1n_VoyKbS+qrrNuBLd3uB0br0xZDGbRM_z8k6=g@mail.gmail.com>
In-Reply-To
<50EEAFB1.2090604@gmail.com>
On Thu, Jan 10, 2013 at 1:10 PM, Karsten Blees <karsten.blees@gmail.com> wrote:
Show 13 quoted lines
>  static int match_cred(const CREDENTIALW *cred)
>  {
> -       return (!wusername || !wcscmp(wusername, cred->UserName)) &&
> -           match_attr(cred, L"git_protocol", protocol) &&
> -           match_attr(cred, L"git_host", host) &&
> -           match_attr(cred, L"git_path", path);
> +       LPCWSTR target = cred->TargetName;
> +       if (wusername && wcscmp(wusername, cred->UserName))
> +               return 0;
> +
> +       return match_part(&target, L"git", L":") &&
> +               match_part(&target, protocol, L"://") &&
> +               match_part(&target, wusername, L"@") &&

This seems to have broken credentials with '@' in the username, which isn't all that unusual these days... :(

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Previous: Junio C Hamano
Message 15 of 15 in “wincred: improve compatibility with windows versions”
  1. wincred: improve compatibility with windows versionsKarsten Blees, Jan 4, 2013
  2. Erik Faye-LundJan 4, 2013
  3. Karsten BleesJan 8, 2013
  4. Erik Faye-LundJan 8, 2013
  5. 0/2 improve-wincred-compatibilityKarsten Blees, Jan 10, 2013
  6. 1/2 wincred: accept CRLF on stdin to simplify console usageKarsten Blees, Jan 10, 2013
  7. 2/2 wincred: improve compatibility with windows versionsKarsten Blees, Jan 10, 2013
  8. Erik Faye-LundJan 11, 2013
  9. Junio C HamanoFeb 25, 2013
  10. Karsten BleesFeb 25, 2013
  11. Junio C HamanoFeb 25, 2013
  12. Johannes SchindelinFeb 26, 2013
  13. Erik Faye-LundFeb 26, 2013
  14. Junio C HamanoFeb 26, 2013
  15. Erik Faye-LundSep 10, 2014

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.