1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

pledge "stdio rpath tty" for bs

This commit is contained in:
tb 2015-11-30 08:33:29 +00:00
parent 02cc2a4e8b
commit efef3032b3

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bs.c,v 1.29 2015/10/24 17:29:03 mmcc Exp $ */
/* $OpenBSD: bs.c,v 1.30 2015/11/30 08:33:29 tb Exp $ */
/*
* Copyright (c) 1986, Bruce Holloway
* All rights reserved.
@ -1347,6 +1347,9 @@ static int scount(int who)
int main(int argc, char *argv[])
{
if (pledge("stdio rpath tty", NULL) == -1)
err(1, "pledge");
do_options(argc, argv);
intro();