artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2f658a
)
data processing stdin to stdout; tame "stdout"
author
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 03:26:31 +0000
(
03:26
+0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 03:26:31 +0000
(
03:26
+0000)
usr.bin/rs/rs.c
patch
|
blob
|
history
diff --git
a/usr.bin/rs/rs.c
b/usr.bin/rs/rs.c
index
5521f55
..
90f26aa
100644
(file)
--- a/
usr.bin/rs/rs.c
+++ b/
usr.bin/rs/rs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rs.c,v 1.2
5 2015/08/20 22:32:4
1 deraadt Exp $ */
+/* $OpenBSD: rs.c,v 1.2
6 2015/10/06 03:26:3
1 deraadt Exp $ */
/*-
* Copyright (c) 1993
@@
-93,6
+93,9
@@
void putfile(void);
int
main(int argc, char *argv[])
{
+ if (tame("stdio", NULL) == -1)
+ err(1, "tame");
+
getargs(argc, argv);
getfile();
if (flags & SHAPEONLY) {