diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2018-08-11 11:04:27 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2018-08-11 11:04:27 +0000 |
commit | 9a77c781842ea754c207a3ccbfa25616a69ceb5b (patch) | |
tree | 76adeca4bccc5440f1e2a8b60757549d3b646f5b /usr.bin/mesg | |
parent | a6c7fc8aaa0c3a001e6bb034c4bc30340eeab13a (diff) |
actually s/unveil/pledge on err(3), I missed it on previous commit.
Diffstat (limited to 'usr.bin/mesg')
-rw-r--r-- | usr.bin/mesg/mesg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c index 1de4aa799bc..f5db6a0aadf 100644 --- a/usr.bin/mesg/mesg.c +++ b/usr.bin/mesg/mesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mesg.c,v 1.14 2018/08/11 10:58:39 mestre Exp $ */ +/* $OpenBSD: mesg.c,v 1.15 2018/08/11 11:04:26 mestre Exp $ */ /* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */ /* @@ -67,7 +67,7 @@ main(int argc, char *argv[]) if (unveil(tty, "rw") == -1) err(2, "unveil"); if (pledge("stdio rpath fattr", NULL) == -1) - err(2, "unveil"); + err(2, "pledge"); if (stat(tty, &sb) < 0) err(2, "%s", tty); |