mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Remove rpath from pledge when only stdin is used.
ok schwarze@
This commit is contained in:
parent
d5f09c0576
commit
e11291e4b0
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cut.c,v 1.25 2018/07/13 08:51:14 krw Exp $ */
|
||||
/* $OpenBSD: cut.c,v 1.26 2019/02/07 19:11:23 tobias Exp $ */
|
||||
/* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -142,7 +142,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (pledge("stdio rpath", NULL) == -1)
|
||||
if (pledge("stdio", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
fcn(stdin, "stdin");
|
||||
|
Loading…
Reference in New Issue
Block a user