lxc: use generic autoreconf fixup
[feed/packages.git] / mail / postfix / patches / 300-bdb_hash_segfault.patch
1 diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dict_db.c
2 --- postfix-2.11.3/src/util/dict_db.c 2012-01-25 04:41:08.000000000 +0400
3 +++ postfix-2.11.3_patched/src/util/dict_db.c 2014-11-01 12:36:44.287641712 +0300
4 @@ -691,8 +691,8 @@
5 msg_panic("db_create null result");
6 if ((errno = db->set_cachesize(db, 0, dict_db_cache_size, 0)) != 0)
7 msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
8 - if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
9 - msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
10 +// if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
11 +// msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
12 #if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
13 if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
14 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags,