g10: Silence message if --quiet is given.
authorKevin J. McCarthy <kevin@8t8.us>
Thu, 10 Mar 2016 11:41:06 +0000 (12:41 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 10 Mar 2016 11:41:06 +0000 (12:41 +0100)
* g10/getkey.c (parse_def_secret_key): Silence message if --quiet is
given.

Signed-off-by: Justus Winter <justus@g10code.com>
g10/getkey.c

index 74fa753..481e8dd 100644 (file)
@@ -1678,7 +1678,7 @@ parse_def_secret_key (ctrl_t ctrl)
         }
       else
         {
-          if (! warned)
+          if (! warned && ! opt.quiet)
             log_info (_("using \"%s\" as default secret key for signing\n"),
                       t->d);
           break;