Poking around subversion/libsvn_subr/gpg_agent.c I found this snippet
(at around line 325):
[[[
/* Send DISPLAY to the gpg-agent daemon. */
display = getenv("DISPLAY");
if (display != NULL)
{
request = apr_psprintf(pool, "OPTION display=%s\n", display);
if (!send_option(sd, buffer, BUFFER_SIZE, "display", display, pool))
{
close(sd);
return SVN_NO_ERROR;
}
}
]]]
Among other things, it looks to be setting the request variable.
However, that variable is never read before it is reset a few lines
later:
[[[
request = apr_psprintf(pool,
"GET_PASSPHRASE --data %s--repeat=1 "
"%s X %s %s\n",
non_interactive ? "--no-ask " : "",
cache_id,
escape_blanks(password_prompt),
escape_blanks(realm_prompt));
]]]
I don't know enough about what's going on here. Is the first time the
variable is set supposed to be combined with the second, or is it just
a superfluous assignment which we can safely remove?
-Hyrum