Follow-up Comment #2, bug #41331 (project wget):

In my case, a strace shows, e.g. for an empty file "empty":

10268 stat("/home/vinc17/wd/config/cacert/empty", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0
10268 open("/home/vinc17/wd/config/cacert/empty", O_RDONLY) = 6
10268 fstat(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
10268 fstat(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
10268 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f28e046b000
10268 lseek(6, 0, SEEK_CUR)             = 0
10268 read(6, "", 8192)                 = 0
10268 close(6)                          = 0
10268 munmap(0x7f28e046b000, 4096)      = 0
10268 write(2, "ERROR: Failed to open cert /home"..., 69) = 69

In Debian, wget is built with:

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/gnutls

Darshit, is wget built with gnutls or openssl in your case?

The problem comes from:

  if ((rc = gnutls_certificate_set_x509_trust_file (credentials, ca_file,
                                                    GNUTLS_X509_FMT_PEM)) <=
0)
    logprintf (LOG_NOTQUIET, _("ERROR: Failed to open cert %s: (%d).n"),
               ca_file, rc);
  else
    ncerts += rc;

while in wget 1.13, the return value of gnutls_certificate_set_x509_trust_file
was not checked. This error message serves no purpose since the "failure"
doesn't prevent the URL from being opened (using the right certificates).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41331>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to