diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-05 16:54:43 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-08 07:05:02 +0100 |
commit | ed68667b918805c7fbef54e9a4fe0a75bf06f22f (patch) | |
tree | d82be44386879917885c3edb1ded489b900e9c6c /recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch | |
parent | f285e1e75421deff88b474c199cbb2be5759a12a (diff) |
netatalk: Upgrade from 2.0.3 to 2.0.5
Addresses CVE-2008-5718.
netatalk-2.0.3-db43.patch: Done differently.
netatalk-2.0.3-xfs.patch: Drop as the config switch was not used
netatalk-2.0.3-setXid.patch: Was not used.
Diffstat (limited to 'recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch')
-rw-r--r-- | recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch new file mode 100644 index 0000000000..6d6d03e36b --- /dev/null +++ b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch @@ -0,0 +1,35 @@ +Move back to AC_TRY_LINK... + +Index: netatalk-2.0.5/macros/db3-check.m4 +=================================================================== +--- netatalk-2.0.5.orig/macros/db3-check.m4 2010-03-05 17:57:14.000000000 +0100 ++++ netatalk-2.0.5/macros/db3-check.m4 2010-03-05 18:33:08.000000000 +0100 +@@ -33,25 +33,13 @@ + for lib in $atalk_cv_bdb_try_libs ; do + LIBS="$lib $savedlibs" + AC_MSG_CHECKING([Berkeley DB library ($lib)]) +- AC_TRY_RUN([ ++ AC_TRY_LINK([ + #include <stdio.h> + #include <db.h> +- int main(void) { +- int major, minor, patch; ++ ], [ ++ int minor, major, patch; + char *version_str; + version_str = db_version(&major, &minor, &patch); +- if (major < DB_MAJOR_REQ || minor < DB_MINOR_REQ || patch < DB_PATCH_REQ) { +- printf("linking wrong library version (%d.%d.%d), ",major, minor, patch); +- return (2); +- } +- if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) { +- printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch); +- return (3); +- } +- printf("%d.%d.%d ... ",major, minor, patch); +- return (0); +- } + ],[ + + AC_MSG_RESULT(yes) |