aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-22 09:00:59 -0500
committerRob Landley <rob@landley.net>2012-03-22 09:00:59 -0500
commit848a033b817a39b6b88ca323fce1d180bd4d9803 (patch)
treed83db3fae912a6d3b58938455fe990e36960d6e9
parent66b0f99d0c0b1d9ad9dcee265081f884b3d949ce (diff)
downloadtoybox-848a033b817a39b6b88ca323fce1d180bd4d9803.tar.gz
The -s flag includes staying quiet about missing files.
-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);
}