summaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
commit7a01108f60e58c5683c269bbbb884090b5a0620f (patch)
treed28dc1713411066fb4ced6b7bb3fe35eb3a43955 /bin/date
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index fb19a99ba38..96fc97e2509 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.48 2015/10/07 05:59:36 deraadt Exp $ */
+/* $OpenBSD: date.c,v 1.49 2015/10/09 01:37:06 deraadt Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -127,8 +127,8 @@ main(int argc, char *argv[])
argc--;
}
- if (tame("stdio rpath wpath", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio rpath wpath", NULL) == -1)
+ err(1, "pledge");
if (*argv && **argv == '+') {
format = *argv + 1;