summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAnthony J. Bentley <bentley@cvs.openbsd.org>2015-11-15 01:22:37 +0000
committerAnthony J. Bentley <bentley@cvs.openbsd.org>2015-11-15 01:22:37 +0000
commit578abdf729f1f7f850bbbd035e9c27060e47a7e9 (patch)
tree1a93a14771923343209e976b8ac953935292fce7 /usr.bin
parentbf9aa827619116f5a14fcc7b5f17b0eee6a64877 (diff)
Vi needs flock, for those who haven't set nolock in .exrc for years...
Pointed out by Theo Buehler.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vi/common/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/main.c b/usr.bin/vi/common/main.c
index 0d3b84726b3..2c54b8d278d 100644
--- a/usr.bin/vi/common/main.c
+++ b/usr.bin/vi/common/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.27 2015/11/15 00:44:03 bentley Exp $ */
+/* $OpenBSD: main.c,v 1.28 2015/11/15 01:22:36 bentley Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -55,7 +55,7 @@ editor(GS *gp, int argc, char *argv[])
int ch, flagchk, lflag, secure, startup, readonly, rval, silent;
char *tag_f, *wsizearg, path[256];
- if (pledge("stdio rpath wpath cpath fattr getpw proc exec tty", NULL) == -1) {
+ if (pledge("stdio rpath wpath cpath fattr flock getpw proc exec tty", NULL) == -1) {
perror("pledge");
goto err;
}