freebsd-ports/editors/nvi-perl/files/patch-common::main.c
Pete Fritchman 209aee66f6 Since we prefix the binary names with "pn", we need this patch so
'pnview' sets the 'readonly' flag by default.

PR:		59088
2004-01-04 23:42:04 +00:00

12 lines
307 B
C

$FreeBSD$
--- common/main.c.orig Sun Jan 4 17:35:52 2004
+++ common/main.c Sun Jan 4 17:36:09 2004
@@ -93,6 +93,7 @@
else {
/* Nview, view are readonly. */
if (!strcmp(gp->progname, "nview") ||
+ !strcmp(gp->progname, "pnview") ||
!strcmp(gp->progname, "view"))
readonly = 1;