mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
pledge "stdio rpath" at the top. (Ricardo's 2nd chunk which reduces
further is not placed right, so I ignored it for now) from Ricardo Mestre
This commit is contained in:
parent
7f87976609
commit
574fb2a2db
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fortune.c,v 1.45 2015/11/10 14:50:04 deraadt Exp $ */
|
||||
/* $OpenBSD: fortune.c,v 1.46 2015/11/10 14:56:50 deraadt Exp $ */
|
||||
/* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
@ -149,6 +149,11 @@ regex_t regex;
|
||||
int
|
||||
main(int ac, char *av[])
|
||||
{
|
||||
if (pledge("stdio rpath", NULL) == -1) {
|
||||
perror("pledge");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
getargs(ac, av);
|
||||
|
||||
if (Match)
|
||||
|
Loading…
Reference in New Issue
Block a user