aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-08-16 11:03:43 +0000
committerWerner Koch <[email protected]>2010-08-16 11:03:43 +0000
commit7e752a42082a96b62ae283e8763bc1be48693c0c (patch)
tree51874625e0a7bcaff265957eb69c76e2e428bd6f /dirmngr/dirmngr.c
parentMinor Makefile fixes to let it build on all platforms (diff)
downloadgnupg-7e752a42082a96b62ae283e8763bc1be48693c0c.tar.gz
gnupg-7e752a42082a96b62ae283e8763bc1be48693c0c.zip
Auto-start dirmngr.
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r--dirmngr/dirmngr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index 771a58642..ed6259a29 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -194,7 +194,7 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_i (oMaxReplies, "max-replies",
N_("|N|do not return more than N items in one query")),
- ARGPARSE_s_s (oSocketName, "socket-name", N_("|FILE|listen on socket FILE")),
+ ARGPARSE_s_s (oSocketName, "socket-name", "@"), /* Only for debugging. */
ARGPARSE_s_u (oFakedSystemTime, "faked-system-time", "@"), /*(epoch time)*/
ARGPARSE_p_u (oDebug, "debug", "@"),
@@ -897,6 +897,7 @@ main (int argc, char **argv)
if (cmd == aServer)
{
+ /* Note that this server mode is maily useful for debugging. */
if (argc)
wrong_args ("--server");
@@ -1002,6 +1003,9 @@ main (int argc, char **argv)
es_fflush (NULL);
+ /* Note: We keep the dirmngr_info output only for the sake of
+ existing scripts which might use this to detect a successful
+ start of the dirmngr. */
#ifdef HAVE_W32_SYSTEM
pid = getpid ();
printf ("set DIRMNGR_INFO=%s;%lu;1\n", socket_name, (ulong) pid);
@@ -1032,7 +1036,7 @@ main (int argc, char **argv)
dirmngr_exit (1);
}
/* Print the environment string, so that the caller can use
- shell's eval to set it */
+ shell's eval to set it. But see above. */
if (csh_style)
{
*strchr (infostr, '=') = ' ';