summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-10-26 12:52:27 +0000
committertedu <tedu@openbsd.org>2015-10-26 12:52:27 +0000
commit4c413bf691cbfbac2577c705da0adf5b52e344aa (patch)
tree3452b0b44477c60989ed93aa5157e31e54578d56 /usr.bin/diff/diff.c
parentprint uptime too. ok deraadt (diff)
downloadwireguard-openbsd-4c413bf691cbfbac2577c705da0adf5b52e344aa.tar.xz
wireguard-openbsd-4c413bf691cbfbac2577c705da0adf5b52e344aa.zip
remove TMPDIR support. ok millert
Diffstat (limited to 'usr.bin/diff/diff.c')
-rw-r--r--usr.bin/diff/diff.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index c37b8087918..3c73530892c 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.63 2015/10/09 01:37:07 deraadt Exp $ */
+/* $OpenBSD: diff.c,v 1.64 2015/10/26 12:52:27 tedu Exp $ */
/*
* Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -211,13 +211,8 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
- if (getenv("TMPDIR")) {
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
- err(1, "pledge");
- } else {
- if (pledge("stdio rpath tmppath", NULL) == -1)
- err(1, "pledge");
- }
+ if (pledge("stdio rpath tmppath", NULL) == -1)
+ err(1, "pledge");
/*
* Do sanity checks, fill in stb1 and stb2 and call the appropriate