aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/cmp.c b/toys/posix/cmp.c
index 13990d45..2dae1138 100644
--- a/toys/posix/cmp.c
+++ b/toys/posix/cmp.c
@@ -79,6 +79,6 @@ out:
void cmp_main(void)
{
- loopfiles_rw(toys.optargs, O_RDONLY, 0, toys.optflags&FLAG_s, do_cmp);
+ loopfiles_rw(toys.optargs, O_CLOEXEC, 0, toys.optflags&FLAG_s, do_cmp);
}