diff options
Diffstat (limited to 'databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c')
-rw-r--r-- | databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c b/databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c index e9b7eb20fdcc..6f15ebe7c15b 100644 --- a/databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c +++ b/databases/rubygem-bdb1/files/patch-ext_bdb1_recnum.c @@ -1,6 +1,6 @@ ---- ext/bdb1/recnum.c.orig +--- ext/bdb1/recnum.c.orig 2022-05-09 10:22:04 UTC +++ ext/bdb1/recnum.c -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ bdb1_recnum_init(int argc, VALUE *argv, VALUE obj) argc++; } rb_hash_aset(argv[argc - 1], array, INT2FIX(0)); @@ -8,4 +8,14 @@ + if (rb_hash_lookup2(argv[argc - 1], sarray, Qundef) != Qundef) { rb_hash_aset(argv[argc - 1], sarray, INT2FIX(0)); } - rb_hash_aset(argv[argc - 1], rb_str_new2("set_flags"), INT2FIX(DB_RENUMBER)); + return bdb1_init(argc, argv, obj); +@@ -134,7 +134,9 @@ bdb1_intern_shift_pop(VALUE obj, int depart, int len) + db_recno_t recno; + VALUE res; + ++#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4 + rb_secure(4); ++#endif + GetDB(obj, dbst); + INIT_RECNO(dbst, key, recno); + DATA_ZERO(data); |