summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/nvi-devel/Makefile2
-rw-r--r--editors/nvi-devel/files/patch-common_exf.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/editors/nvi-devel/Makefile b/editors/nvi-devel/Makefile
index 0b66789b215a..29a626b4d7ae 100644
--- a/editors/nvi-devel/Makefile
+++ b/editors/nvi-devel/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nvi
PORTVERSION= 1.81.6
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= editors
MASTER_SITES= ftp://ftp.stack.nl/pub/users/johans/nvi/
diff --git a/editors/nvi-devel/files/patch-common_exf.c b/editors/nvi-devel/files/patch-common_exf.c
new file mode 100644
index 000000000000..8d725050fe26
--- /dev/null
+++ b/editors/nvi-devel/files/patch-common_exf.c
@@ -0,0 +1,11 @@
+--- ../common/exf.c.orig 2007-11-18 16:41:42 UTC
++++ ../common/exf.c
+@@ -392,7 +392,7 @@ postinit:
+ * an error.
+ */
+ if (rcv_name == NULL && ep->refcnt == 0) {
+- if ((ep->fd = open(oname, O_RDWR)) == -1)
++ if ((ep->fd = open(oname, O_RDONLY)) == -1)
+ goto no_lock;
+
+ switch (file_lock(sp, oname, &ep->fcntl_fd, ep->fd, 1)) {