Commit e7189017 authored by Matthias Andree's avatar Matthias Andree

Merge portability patch from Peter O'Gorman, fetchmail-devel 2007-10-31.

This requires some minor fixes though.

svn path=/branches/BRANCH_6-3/; revision=5145
parent d723cc00
......@@ -291,8 +291,11 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
hostlen) == NULL)
return EAI_SYSTEM;
#else
if (afd->a_af == AF_INET)
strlcpy(host, inet_ntoa(addr), hostlen);
if (afd->a_af == AF_INET) {
struct in_addr addr_tmp;
addr_tmp.s_addr = addr;
strlcpy(host, inet_ntoa(addr_tmp), hostlen);
}
else
return EAI_FAMILY;
#endif
......
......@@ -3,9 +3,7 @@
SUBDIRS= m4 po
AUTOMAKE_OPTIONS= 1.8 foreign no-dist-gzip dist-bzip2
AM_CFLAGS= @[email protected]
AM_CPPFLAGS= @[email protected] -I$(srcdir)/libesmtp
AM_LDFLAGS= @[email protected]
AM_CPPFLAGS= -I$(srcdir)/libesmtp
ACLOCAL_AMFLAGS= -I m4 -I m4-local
AM_YFLAGS= -d
BUILT_SOURCES= rcfile_y.h
......
......@@ -75,6 +75,21 @@ fetchmail 6.3.9 (not yet released):
default with no switches in configure to enable it. However, the macro would
have been prone to a symlink attack. Found by Nico Golde.
* Include the typedef for int16 in the #ifndef _AIX in smbencrypt.c (Peter
O'Gorman)
* Correct check for u_int32_t in configure.ac (seems to be typedef'ed in
namser.h on some platforms.) (Peter O'Gorman)
* In configure.ac change all CPFLAGS to CPPFLAGS, CEFLAGS to CFLAGS and LDEFLAGS
to LDFLAGS otherwise the results of some tests (additional -L and -I flags) do
not get used for later tests causing incorrect configure results. Makefile.am
was also changed to reflect this. (Peter O'Gorman)
* m4/gethostbyname_r.m4 does AC_TRY_COMPILE, which unfortunately can pass even
if there is no gethostbyname_r. Changed to AC_TRY_LINK. (Peter O'Gorman)
* __attribute__ ((unused)) is a gccism, removed from libesmtp/gethostbyname.c.
(Peter O'Gorman)
* In KAME/getnameinfo.c it's best to use the correct argument to inet_ntoa.
(Peter O'Gorman)
# DOCUMENTATION:
* Add fetchmail-SA-2007-02.txt
* Re-add two lines to the manual page that had accidentally become comments
......@@ -89,6 +104,8 @@ fetchmail 6.3.9 (not yet released):
* Spanish (Javier Fernández-Sanguino Peña, Matthias Andree)
* Vietnamese (Clytie Siddall)
fetchmail 6.3.8 (released 2007-04-06):
# SECURITY STRENGTHENING:
......
......@@ -5,7 +5,6 @@ soon - MUST:
- report multiline SMTP errors properly (sample in private mail from
Earl Chew, 2007-07-30T02:28)
- publish SA-2007-02 after release
- Peter O'Gorman 2007-10-31 fetchmail-6.3.8 portability patches [-devel list]
soon - SHOULD:
- BerliOS Bug #11576, thread on fetchmail users "Invalid SSL certificate" by
......
This diff is collapsed.
......@@ -201,7 +201,7 @@ h_error_ctx (struct ghbnctx *ctx)
#else
void
free_ghbnctx (struct ghbnctx *ctx __attribute__ ((unused)))
free_ghbnctx (struct ghbnctx *ctx )
{
assert (ctx != NULL);
}
......
......@@ -17,7 +17,7 @@ dnl
AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
[AC_CACHE_CHECK(number of arguments to gethostbyname_r,
acx_which_gethostbyname_r, [
AC_TRY_COMPILE([
AC_TRY_LINK([
# include <netdb.h>
], [
......@@ -29,7 +29,7 @@ AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
],acx_which_gethostbyname_r=3,
[
dnl acx_which_gethostbyname_r=0
AC_TRY_COMPILE([
AC_TRY_LINK([
# include <netdb.h>
], [
char *name;
......@@ -42,7 +42,7 @@ dnl acx_which_gethostbyname_r=0
[
dnl acx_which_gethostbyname_r=0
AC_TRY_COMPILE([
AC_TRY_LINK([
# include <netdb.h>
], [
char *name;
......
......@@ -35,8 +35,8 @@ extern int DEBUGLEVEL;
#ifndef _AIX
typedef unsigned char uchar;
#endif
typedef signed short int16;
#endif
typedef int BOOL;
#define False 0
#define True 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment