--- editors/nvi-devel/Makefile (revision 491921) +++ editors/nvi-devel/Makefile (working copy) @@ -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/ --- editors/nvi-devel/files/patch-common_exf.c (nonexistent) +++ editors/nvi-devel/files/patch-common_exf.c (working copy) @@ -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)) {