This patch originates from the Debian project, see https://www.debian.org/ 03db4.dpatch by libdb4 compatibility adjustments. In particular, this patch adds extra file permission checking and passes the DB_CREATE flag to the first invocation of db_open on the file's database structure, which rids us of the following message: BDB0635 DB_CREATE must be specified to create databases. --- nvi-1.81.6.orig/common/msg.c 2009-02-26 14:26:58.350336128 +0100 +++ nvi-1.81.6/common/msg.c 2009-02-26 14:29:05.235335829 +0100 @@ -724,9 +724,18 @@ p = buf; } else p = file; + if (access(p, F_OK) != 0) { + if (first) { + first = 0; + return (1); + } + sp->db_error = ENOENT; + msgq_str(sp, M_DBERR, p, "%s"); + return (1); + } if ((sp->db_error = db_create(&db, 0, 0)) != 0 || (sp->db_error = db->set_re_source(db, p)) != 0 || - (sp->db_error = db_open(db, NULL, DB_RECNO, 0, 0)) != 0) { + (sp->db_error = db_open(db, NULL, DB_RECNO, DB_CREATE, 0)) != 0) { if (first) { first = 0; return (1); yrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/vim.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 9331959cb3..b5952e3e21 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
-;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
@@ -501,7 +501,7 @@ trouble using them, because you do not have to remember each snippet name.")
(define-public vim-fugitive
(package
(name "vim-fugitive")
- (version "3.1")
+ (version "3.2")
(source
(origin
(method git-fetch)
@@ -511,7 +511,7 @@ trouble using them, because you do not have to remember each snippet name.")
(file-name (git-file-name name version))
(sha256
(base32
- "0d9jhmidmy5c60iy9x47gqr675n5wp9wrzln83r8ima1fz7vvbgs"))))
+ "1jbn5jxadccmcz01j94d0i1bp74cixr0fpxxf1h0aqdf1ljk3d7n"))))
(build-system gnu-build-system)
(arguments
'(#:tests? #f