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))
Among other things, it looks to be setting the request variable.
However, that variable is never read before it is reset a few lines
request = apr_psprintf(pool,
"GET_PASSPHRASE --data %s--repeat=1 "
"%s X %s %s\n",
non_interactive ? "--no-ask " : "",
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?
Received on 2012-10-09 03:51:37 CEST