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)
committerWerner Koch <wk@gnupg.org>
Mon, 13 Feb 2017 19:13:05 +0000 (20:13 +0100)
commit30dac0486b6357e84fbe79c612eea940b654e4d1
tree764fa565728bad51bc931167786e129cc041bb75
parent810adfd47801fc01e45fb71af9f05c91f7890cdb
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>
tools/gpgconf-comp.c