summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbentley <bentley@openbsd.org>2015-11-15 01:22:36 +0000
committerbentley <bentley@openbsd.org>2015-11-15 01:22:36 +0000
commit4b41321d3967c93696cf9f50536ce125478d63c3 (patch)
treef51950deb277a4ffb9752e1637c6c59499acc4fb
parentDeclare 802.11n mode and channel flags. Tweak 11n related fields in struct (diff)
downloadwireguard-openbsd-4b41321d3967c93696cf9f50536ce125478d63c3.tar.xz
wireguard-openbsd-4b41321d3967c93696cf9f50536ce125478d63c3.zip
Vi needs flock, for those who haven't set nolock in .exrc for years...
Pointed out by Theo Buehler.
-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;
}