This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[50 character or so descriptive subject here (for reference)]
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: [50 character or so descriptive subject here (for reference)]
- From: leitner at convergence dot de
- Date: 20 Sep 2000 12:36:16 -0000
>Submitter-Id: net
>Originator: Felix von Leitner
>Organization: Convergence
>Confidential: no
>Synopsis: getaddrinfo does not set res-ai_socktype
>Severity: serious
>Priority: high
>Category: libc
>Class: sw-bug
>Release: libc-2.1.94
>Environment:
Host type: i686-pc-linux-gnu
System: Linux baileys 2.2.16 #1 SMP Mon Jun 26 17:22:24 CEST 2000 i686 unknown
Architecture: i686
Addons: linuxthreads
Build CFLAGS: -O2 -Os -pipe -I/usr/local/include
Build CC: gcc
Compiler version: 2.95.2 19991024 (release)
Kernel headers: 2.2.16
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio
>Description:
lukemftp does not work because it calls socket with 0 as second
parameter and gets EINVAL from the kernel. I looked in the
source code of lukemftp and found that it uses res->ai_socktype
from the res that it got from getaddrinfo. Unfortunately, the
libc manual does not document getaddrinfo (hint, hint!), so I
assume that lukemftp is correct in assuming that this field
would be filled in.
>How-To-Repeat:
compile lukemftp (ftp client from netbsd)
>Fix:
no workaround