- 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
This commit is contained in:
Stanislav Sedov 2009-05-07 16:12:59 +00:00
parent 402f716f50
commit 9f8304653b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233367
2 changed files with 21 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= bdb
PORTVERSION= 0.6.5
PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,20 @@
--- 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);
}
}
}