+1999-05-06 Ulrich Drepper <drepper@cygnus.com>
+
+ * nss/digits_dots.c: Correct return value interpretation of
+ inet_ntoa. Fix PR libc/1109.
+
1999-05-06 Zack Weinberg <zack@rabi.columbia.edu>
* sysdeps/sparc/sparc32/sparcv9/Dist: New file.
{
if (!*cp)
{
- int not_ok;
+ int ok;
if (*--cp == '.')
break;
255.255.255.255? The test below will succeed
spuriously... ??? */
if (af == AF_INET)
- not_ok = inet_aton (name, (struct in_addr *) host_addr);
+ ok = inet_aton (name, (struct in_addr *) host_addr);
else
{
assert (af == AF_INET6);
- not_ok = (inet_pton (af, name, host_addr) <= 0);
+ ok = (inet_pton (af, name, host_addr) > 0);
}
- if (not_ok)
+ if (! ok)
{
__set_h_errno (HOST_NOT_FOUND);
#ifndef HAVE_LOOKUP_BUFFER
; return 0; }
EOF
-if { (eval echo configure:36: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:36: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
extern char *sys_siglist[]; puts(*sys_siglist);
; return 0; }
EOF
-if { (eval echo configure:19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_check_symbol_sys_siglist=yes
else
extern char *_sys_siglist[]; puts(*_sys_siglist);
; return 0; }
EOF
-if { (eval echo configure:52: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:52: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_check_symbol__sys_siglist=yes
else
$ctype[13];
; return 0; }
EOF
-if { (eval echo configure:89: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:89: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
libc_cv_ctype_glue="$ctype"; break
else
; return 0; }
EOF
-if { (eval echo configure:37: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:37: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else