- 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:
parent
402f716f50
commit
9f8304653b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233367
@ -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}
|
||||
|
20
databases/ruby-bdb/files/patch-src_common.c
Normal file
20
databases/ruby-bdb/files/patch-src_common.c
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user