summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-23 01:00:16 +0000
committerderaadt <deraadt@openbsd.org>2015-10-23 01:00:16 +0000
commit30d3ba7a9a9d642f08d8e614e1725e6d1b5b3932 (patch)
tree9d1c04d86936bf2c2a7151e0346452a51eb101ce
parentAllow hw.ncpu sysctl (a few reasons showed up in my mailbox rapidly..) (diff)
downloadwireguard-openbsd-30d3ba7a9a9d642f08d8e614e1725e6d1b5b3932.tar.xz
wireguard-openbsd-30d3ba7a9a9d642f08d8e614e1725e6d1b5b3932.zip
correct precedence; from Ilya Kaliman
-rw-r--r--bin/mkdir/mkdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c
index 9ebf6b4b4b0..19438828fc0 100644
--- a/bin/mkdir/mkdir.c
+++ b/bin/mkdir/mkdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkdir.c,v 1.28 2015/10/10 20:18:30 deraadt Exp $ */
+/* $OpenBSD: mkdir.c,v 1.29 2015/10/23 01:00:16 deraadt Exp $ */
/* $NetBSD: mkdir.c,v 1.14 1995/06/25 21:59:21 mycroft Exp $ */
/*
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
- if (mode & (S_ISUID | S_ISGID | S_ISTXT) == 0) {
+ if ((mode & (S_ISUID | S_ISGID | S_ISTXT)) == 0) {
if (pledge("stdio rpath cpath fattr", NULL) == -1)
err(1, "pledge");
}