chiark / gitweb /
gpgconf: No ENOENT warning with --change-options et al.
authorWerner Koch <wk@gnupg.org>
Mon, 13 Feb 2017 18:38:53 +0000 (19:38 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commitafe9919be926a9a0dee513664d6a3e995c4202f7
tree62375fecd2af7422f1eda2668ea2106ba8c3beef
parenta1f51c0bb9492437bd5fdb788aa8beaf4a458617
gpgconf: No ENOENT warning with --change-options et al.

* tools/gpgconf-comp.c (retrieve_options_from_program): Check ERRNO
before printing a warning.
--

It is common that a conf files does not exist - thus we should not
print a warning.

GnuPG-bug-id: 2944

BTW: The error messages in gpgconf should be reworked to match those
of the other components.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 30dac0486b6357e84fbe79c612eea940b654e4d1)

Gbp-Pq: Name 0036-gpgconf-No-ENOENT-warning-with-change-options-et-al.patch
tools/gpgconf-comp.c