1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/databases/ruby-bdb/files/patch-src_common.c
Stanislav Sedov 9f8304653b - Don't generate exceptions on faliures in bdb close call. This fixes
unprivileged user mode in portupgrade (-s switch) and fixes ruby-bdb's
  'close' method.

Reviewed by:	knu
2009-05-07 16:12:59 +00:00

21 lines
540 B
C

--- src/common.c.orig 2009-05-02 19:19:39.000000000 +0400
+++ src/common.c 2009-05-02 19:20:04.000000000 +0400
@@ -941,7 +941,7 @@
}
}
if (!(dbst->options & BDB_NOT_OPEN)) {
- bdb_test_error(dbst->dbp->close(dbst->dbp, flags));
+ dbst->dbp->close(dbst->dbp, flags);
}
}
else {
@@ -950,7 +950,7 @@
bdb_ary_delete(&envst->db_ary, dbst->ori_val);
}
if (!(dbst->options & BDB_NOT_OPEN)) {
- bdb_test_error(dbst->dbp->close(dbst->dbp, flags));
+ dbst->dbp->close(dbst->dbp, flags);
}
}
}