echo <option>:<flags>:<value> gpgconf --change-options dirmngr <option> results in "$HOME/.gnupg/dirmngr_ldapservers.conf : No such file or directory" on a freshly installed bionic system

Bug #1773834 reported by Dmitrii Shcherbakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnupg2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

echo honor-http-proxy:0:1 | gpgconf --change-options dirmngr honor-http-proxy
gpgconf: warning: can not open list file /home/ubuntu/.gnupg/dirmngr_ldapservers.conf: No such file or directory
dirmngr:Network:/usr/bin/dirmngr:1:1:

echo honor-http-proxy:0:1 | ltrace -s128 gpgconf --change-options dirmngr honor-http-proxy

strcmp("ldaptimeout", "ldapserverlist-file") = 1
strcmp("ldapserverlist-file", "ldapserverlist-file") = 0
strlen("/home/ubuntu/.gnupg/dirmngr_ldapservers.conf") = 42
realloc(0x564a9f09be00, 127) = 0x564a9f09bec0
gpgrt_fopen(0x564a9f09bec0, 0x564a9e42475a, 0x7f1b1fdd8c40, 5) = 0
__errno_location() = 0x7f1b205136c0
_gpgrt_get_std_stream(2, 0x564a9e4241c9, 0, 0) = 0x564a9f097be0
gpgrt_fileno(0x564a9f097be0, 0x564a9e4241c9, 0, 2) = 2
gcry_xmalloc(20, 0x7ffd8eafe7c0, 0, 2) = 0x564a9f09bd80
gpgrt_fopencookie(0x564a9f09bd80, 0x564a9e421e0a, 0x564a9f09bd80, 0) = 0x564a9f09bda0
gpgrt_setvbuf(0x564a9f09bda0, 0, 1, 0) = 0
gpgrt_flockfile(0x564a9f09bda0, 0, 0x564a9f0a01f0, 0) = 0
gpgrt_fputs_unlocked(0x564a9e62e200, 0x564a9f09bda0, 0x564a9f0a01f0, 0) = 0
gpgrt_vfprintf_unlocked(0x564a9f09bda0, 0x564a9e422cb0, 0x7ffd8eafe8b0, 9) = 74
strlen("warning: can not open list file %s") = 34
gpgrt_funlockfile(0x564a9f09bda0, 0x564a9f09bda0, 0x564a9e422cb0, 16) = 0
strerror(2) = "No such file or directory"
gpgrt_flockfile(0x564a9f09bda0, 0, 0, 0) = 0
gpgrt_vfprintf_unlocked(0x564a9f09bda0, 0x564a9e4212a3, 0x7ffd8eafe7d0, 0 <unfinished ...>
write(2, "gpgconf: warning: can not open list file /home/ubuntu/.gnupg/dirmngr_ldapservers.conf: No such file or directory", 110gpgconf: warning: can not open list file /home/ubuntu/.gnupg/dirmngr_ldapservers.conf: No such file or directory) = 110
write(2, "\n", 1
) = 1
<... gpgrt_vfprintf_unlocked resumed> ) = 28
strlen(": %s\n") = 5

A magic touch helps to "solve" the problem:

$ touch ~/.gnupg/dirmngr_ldapservers.conf
$ echo honor-http-proxy:0:1 | gpgconf --change-options dirmngr honor-http-proxy

dirmngr:Network:/usr/bin/dirmngr:1:1:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.