summaryrefslogtreecommitdiff
path: root/editors/nvi-devel/files/patch-common_exf.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/nvi-devel/files/patch-common_exf.c')
-rw-r--r--editors/nvi-devel/files/patch-common_exf.c11
1 files changed, 11 insertions, 0 deletions
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)) {