pkgsrc/net/netatalk/patches/patch-al
markd a0523193f0 Update to netatalk 2.0.2.
Changes in 2.0.2
NEW: cnid: Add an indexes check and rebuild, optional for dbd (parameter
  check default no), standalone program cnid_index for cdb.
UPD: Enhanced afpd's -v command line switch and added -V for more verbose
  information
UPD: uams_gss: build the principal used by uams_gss.so from afpd's
  configuration, don't use GSS_C_NT_HOSTBASED_SERVICE
UPD: cnid_dbd: add process id in syslog and small clean up
REM: remove netatalkshorternamelinks.pl
FIX: afpd: check for DenyRead on FPCopyFile
FIX: afpd: add missing flush for AD2 Metadata on FPCopyFile
FIX: afpd: Deal with AFP3 connection and type 2 (non-UTF8) names.
  reported by Gair Heaton, HI RESOLUTION SYSTEMS
FIX: afpd: Broken 'crlf' option
FIX: afpd: fix afpd/dhx memory bug, by Ralf Schuchardt
FIX: afpd: Return an error if we cannot get the db stamp in afp_openvol.
FIX: afpd: Fix slp registration with Solaris9 slpd, from hat at
  fa2.so-net.ne.jp
2005-01-04 12:57:03 +00:00

16 lines
532 B
Text

$NetBSD: patch-al,v 1.4 2005/01/04 12:57:03 markd Exp $
--- etc/cnid_dbd/dbif.c.orig 2004-12-22 02:36:12.000000000 +1300
+++ etc/cnid_dbd/dbif.c
@@ -514,7 +514,11 @@ int dbif_count(const int dbi, u_int32_t
DB_BTREE_STAT *sp;
DB *db = db_table[dbi].db;
+#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
+ ret = db->stat(db, NULL, &sp, 0);
+#else
ret = db->stat(db, &sp, 0);
+#endif
if (ret) {
LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));