From: Matthias Wachs Date: Thu, 15 Mar 2012 21:24:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~14222 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a7fad623328bba9226cfd3f4f00d779c495c414;p=oweals%2Fgnunet.git --- diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index c58d58fd1..bd083470e 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -260,10 +260,17 @@ run (void *cls, char *const *args, const char *cfgfile, if (NULL == keyfile) { - fprintf (stderr, - _("Option `%s' not given, but I need a zone key file!\n"), - "z"); - return; + if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns", + "ZONEKEY", &keyfile)) + { + fprintf (stderr, + _("Option `%s' not given, but I need a zone key file!\n"), + "z"); + return; + } + fprintf (stderr, + _("Using default zone file `%s'\n"), + keyfile); } zone_pkey = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); GNUNET_free (keyfile); @@ -271,6 +278,8 @@ run (void *cls, char *const *args, const char *cfgfile, if (! (add|del|list)) { /* nothing more to be done */ + fprintf (stderr, + _("No options given\n")); GNUNET_CRYPTO_rsa_key_free (zone_pkey); zone_pkey = NULL; return;