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>