aboutsummaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 590660768810..acec74709896 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -98,7 +98,7 @@ main(int argc __unused, char *argv[])
setup();
caph_cache_catpages();
- if (cap_enter() == -1 && errno != ENOSYS)
+ if (caph_enter() < 0)
err(1, "unable to enter capability mode");
(void)signal(SIGINFO, siginfo_handler);