mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
unspectacular pledge "stdio rpath tty" for grdc
This commit is contained in:
parent
24c4b92ed4
commit
81b3eda1fe
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: grdc.c,v 1.19 2014/11/19 03:27:45 schwarze Exp $ */
|
||||
/* $OpenBSD: grdc.c,v 1.20 2015/11/30 08:46:07 tb Exp $ */
|
||||
/*
|
||||
*
|
||||
* Copyright 2002 Amos Shapir. Public domain.
|
||||
@ -70,6 +70,9 @@ main(int argc, char *argv[])
|
||||
int ybase;
|
||||
int wintoosmall;
|
||||
|
||||
if (pledge("stdio rpath tty", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
scrol = wintoosmall = 0;
|
||||
while ((i = getopt(argc, argv, "sh")) != -1)
|
||||
switch (i) {
|
||||
|
Loading…
Reference in New Issue
Block a user