mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Kludge to allow disabling of the extra sockets.
* agent/gpg-agent.c (main): Check for special socket names. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
de67055aff
commit
95cf7afff0
2 changed files with 19 additions and 2 deletions
|
@ -1050,12 +1050,28 @@ main (int argc, char **argv )
|
|||
opt.extra_socket = 1; /* (1 = points into r/o section) */
|
||||
socket_name_extra = GPG_AGENT_EXTRA_SOCK_NAME;
|
||||
}
|
||||
else if (socket_name_extra
|
||||
&& (!strcmp (socket_name_extra, "none")
|
||||
|| !strcmp (socket_name_extra, "/dev/null")))
|
||||
{
|
||||
/* User requested not to create this socket. */
|
||||
opt.extra_socket = 0;
|
||||
socket_name_extra = NULL;
|
||||
}
|
||||
|
||||
if (! opt.browser_socket)
|
||||
{
|
||||
opt.browser_socket = 1; /* (1 = points into r/o section) */
|
||||
socket_name_browser = GPG_AGENT_BROWSER_SOCK_NAME;
|
||||
}
|
||||
else if (socket_name_browser
|
||||
&& (!strcmp (socket_name_browser, "none")
|
||||
|| !strcmp (socket_name_browser, "/dev/null")))
|
||||
{
|
||||
/* User requested not to create this socket. */
|
||||
opt.browser_socket = 0;
|
||||
socket_name_browser = NULL;
|
||||
}
|
||||
|
||||
set_debug ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue