mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
dirmngr: Only print info for no ldapserver file
* dirmngr/dirmngr.c (parse_ldapserver_file): Only print info for ENOENT. -- It is very common that there is no ldapserver file. In that case users are confused by an error printed at dirmngr startup.
This commit is contained in:
parent
6b36c16f77
commit
01baee2b0e
@ -1629,7 +1629,11 @@ parse_ldapserver_file (const char* filename)
|
||||
fp = es_fopen (filename, "r");
|
||||
if (!fp)
|
||||
{
|
||||
log_error (_("error opening '%s': %s\n"), filename, strerror (errno));
|
||||
if (errno == ENOENT)
|
||||
log_info ("No ldapserver file at: '%s'\n", filename);
|
||||
else
|
||||
log_error (_("error opening '%s': %s\n"), filename,
|
||||
strerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user