diff options
Diffstat (limited to 'usr.bin/cal/cal.c')
-rw-r--r-- | usr.bin/cal/cal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cal/cal.c b/usr.bin/cal/cal.c index 144b8635d21..017f0addf5e 100644 --- a/usr.bin/cal/cal.c +++ b/usr.bin/cal/cal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cal.c,v 1.28 2015/03/17 19:31:30 millert Exp $ */ +/* $OpenBSD: cal.c,v 1.29 2015/10/05 13:30:30 deraadt Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* @@ -150,6 +150,9 @@ main(int argc, char *argv[]) int ch, month, year, yflag; const char *errstr; + if (tame("stdio", NULL) == -1) + err(1, "tame"); + yflag = year = 0; while ((ch = getopt(argc, argv, "jmwy")) != -1) switch(ch) { |