artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14972b8
)
same thing as biff, pledge "stdio rpath fattr tty"
author
deraadt
<deraadt@openbsd.org>
Mon, 12 Oct 2015 06:00:57 +0000
(06:00 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 12 Oct 2015 06:00:57 +0000
(06:00 +0000)
usr.bin/mesg/mesg.c
patch
|
blob
|
history
diff --git
a/usr.bin/mesg/mesg.c
b/usr.bin/mesg/mesg.c
index
fd1483e
..
fa16831
100644
(file)
--- a/
usr.bin/mesg/mesg.c
+++ b/
usr.bin/mesg/mesg.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mesg.c,v 1.
8 2009/10/27 23:59:40
deraadt Exp $ */
+/* $OpenBSD: mesg.c,v 1.
9 2015/10/12 06:00:57
deraadt Exp $ */
/* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */
/*
@@
-52,6
+52,9
@@
main(int argc, char *argv[])
char *tty;
int ch;
+ if (pledge("stdio rpath fattr tty", NULL) == -1)
+ err(1, "pledge");
+
while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':