head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2014.06.09.17.29.09; author schmonz; state dead; branches; next 1.1; commitid UEhnxTT4Q47a7SDx; 1.1 date 2014.05.17.04.06.56; author schmonz; state Exp; branches; next ; commitid 0nrpVi9tVmyGpQAx; desc @@ 1.2 log @Update to 1.1.1. From the changelog: * src/mbsync.1: * don't lie about the default of User * fix typos * src/drv_maildir.c: * don't forget to reset message counts when skipping scan * remove apparently pointless resetting of recent message count * src/compat/convert.c: * error-check renaming of uid mapping database * error-check reading of old uidvalidity and maxuid files * src/sync.c: * error-check committing of sync state * better error messages for sync state and journal related errors * remove pointless/counterproductive "Disk full?" error message suffixes * don't crash in message expiration debug print * src/compat/config.c: * fix "inverse copy&pasto" in account labeling code * don't needlessly quote strings * write Sync and Expunge to global section if applicable * don't bother checking impossible condition * src/main.c: * fix segfault on passing --{create,expunge}-{master,slave} * don't needlessly spell out INBOX * src/drv_imap.c: * don't crash on malformed response code * don't crash on truncated LIST response * fix crash on store without prior fetch with non-UIDPLUS servers * don't error out if we don't get an X-TUID header * src/compat/main.c: * remove pointless pointer assignment * src/: drv_maildir.c, mdconvert.c: * fix hypothetical buffer overflows * close a bunch of fd leaks in error paths * src/util.c: * actually use prime numbers for all hash bucket sizes * src/config.c: * fix zero MaxSize override in Channels * src/compat/: config.c, isync.h, util.c: * rework maildir store mapping * src/socket.c: * remove pointless use of AI_V4MAPPED flag * configure.ac, src/common.h, src/drv_imap.c, src/util.c: * make date parsing portable, take 2 * src/: drv_maildir.c, sync.c: * fix _POSIX_SYNCHRONIZED_IO usage Many of these changes were in response to findings from a Coverity scan. @ text @$NetBSD: patch-configure,v 1.1 2014/05/17 04:06:56 schmonz Exp $ NetBSD does not support AI_V4MAPPED. --- configure.orig 2014-05-17 03:55:53.000000000 +0000 +++ configure @@@@ -1799,6 +1799,52 @@@@ $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. @@@@ -4290,6 +4336,17 @@@@ _ACEOF fi done +ac_fn_c_check_decl "$LINENO" "AI_V4MAPPED" "ac_cv_have_decl_AI_V4MAPPED" "$ac_includes_default" +if test "x$ac_cv_have_decl_AI_V4MAPPED" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_AI_V4MAPPED $ac_have_decl +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } @ 1.1 log @Detect absence of AI_V4MAPPED to fix build on NetBSD. @ text @d1 1 a1 1 $NetBSD$ @