aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/cmp.c b/toys/cmp.c
index 87fbe024..42325a17 100644
--- a/toys/cmp.c
+++ b/toys/cmp.c
@@ -87,6 +87,6 @@ out:
void cmp_main(void)
{
- loopfiles(toys.optargs, do_cmp);
+ loopfiles_rw(toys.optargs, O_RDONLY, 0, toys.optflags&FLAG_s, do_cmp);
}