aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/getopt
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r--usr.bin/getopt/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c
index 3f55a34f6d50..970a4c7659af 100644
--- a/usr.bin/getopt/getopt.c
+++ b/usr.bin/getopt/getopt.c
@@ -19,7 +19,7 @@ main(int argc, char *argv[])
int c;
int status = 0;
- if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
+ if (caph_limit_stdio() < 0 || caph_enter() < 0)
err(1, "capsicum");
optind = 2; /* Past the program name and the option letters. */