diff options
Diffstat (limited to 'bin/date')
-rw-r--r-- | bin/date/date.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/date/date.c b/bin/date/date.c index 3a3ff3851a3..0f5dad5b3fa 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -1,4 +1,4 @@ -/* $OpenBSD: date.c,v 1.52 2018/02/13 17:28:11 cheloha Exp $ */ +/* $OpenBSD: date.c,v 1.53 2018/04/25 19:37:09 deraadt Exp $ */ /* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */ /* @@ -127,7 +127,7 @@ main(int argc, char *argv[]) argc--; } - if (pledge("stdio rpath wpath", NULL) == -1) + if (pledge("stdio rpath", NULL) == -1) err(1, "pledge"); if (*argv && **argv == '+') { @@ -159,6 +159,9 @@ setthetime(char *p) time_t now; int yearset = 0; + if (pledge("stdio settime rpath wpath", NULL) == -1) + err(1, "pledge"); + for (t = p, dot = NULL; *t; ++t) { if (isdigit((unsigned char)*t)) continue; |