mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: report actual socket name.
* dirmngr/dirmngr.[ch] (dirmngr_get_current_socket_name): new function to report known socket name. * dirmngr/server.c (cmd_getinfo): use dirmngr_get_current_socket_name to report correct socket name. -- This fixes the output of 'getinfo socket_name' when dirmngr is invoked with --socket-name. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
parent
bc28f320fa
commit
6bb6ac56cc
3 changed files with 11 additions and 1 deletions
|
@ -2074,3 +2074,12 @@ handle_connections (assuan_fd_t listen_fd)
|
|||
cleanup ();
|
||||
log_info ("%s %s stopped\n", strusage(11), strusage(13));
|
||||
}
|
||||
|
||||
const char*
|
||||
dirmngr_get_current_socket_name (void)
|
||||
{
|
||||
if (socket_name)
|
||||
return socket_name;
|
||||
else
|
||||
return dirmngr_socket_name ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue