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

Re: [PATCH v2 2/3] git-core: Support retrieving passwords with GIT_ASKPASS

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Feb 26, 2010, 09:32 UTC
Message-ID
<4B87952F.1000902@viscovery.net>
In-Reply-To
<7vr5o84erv.fsf@alter.siamese.dyndns.org>
Junio C Hamano schrieb:
Show 10 quoted lines
> Johannes Sixt <j.sixt@viscovery.net> writes:
>> OTOH, it may be worthwhile to set
>>
>> 		pass.use_shell = 1;
>>
>> to allow commands that are not just a single plain word. But perhaps this
>> has security implications - I don't know.
> 
> How does SSH_ASKPASS gets interpreted by other programs?  I think we
> should follow that example.

openssh treats SSH_ASKPASS as a command name and uses execlp, i.e., does a PATH search; no shell tricks are possible. Hence, we should *not* set use_shell.

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/readpass.c?rev=1.47

Of course, we could define that GIT_ASKPASS is different from SSH_ASKPASS in this regard, but I haven't followed the discussion to know whether this is necessary.

-- Hannes
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “git-core: Support retrieving passwords with GIT_ASKPASS”
  1. 2/3 git-core: Support retrieving passwords with GIT_ASKPASSFrank Li, Feb 26, 2010
  2. Miklos VajnaFeb 26, 2010
  3. Frank LiFeb 26, 2010
  4. Johannes SixtFeb 26, 2010
  5. Junio C HamanoFeb 26, 2010
  6. Johannes SixtFeb 26, 2010
  7. Junio C HamanoFeb 26, 2010
  8. Frank LiFeb 26, 2010

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.