aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-06-06 21:34:02 -0500
committerRob Landley <rob@landley.net>2015-06-06 21:34:02 -0500
commit94983f2dddde86e8f121abe97a28aa1f6c87a3db (patch)
treecf7f7a3ba09c7fc71b98a0114e11deefd322da5a /toys/posix
parent204bd961aec4a5787db109cd3ad9447841cb6922 (diff)
downloadtoybox-94983f2dddde86e8f121abe97a28aa1f6c87a3db.tar.gz
Last grep commit broke non -r use of grep. Oops.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/grep.c b/toys/posix/grep.c
index 6e383efc..ffc920c1 100644
--- a/toys/posix/grep.c
+++ b/toys/posix/grep.c
@@ -298,5 +298,5 @@ void grep_main(void)
if (!strcmp(*ss, "-")) do_grep(0, *ss);
else dirtree_read(*ss, do_grep_r);
}
- } else loopfiles_rw(toys.optargs, O_RDONLY, 0, 1, do_grep);
+ } else loopfiles_rw(ss, O_RDONLY, 0, 1, do_grep);
}