commit | 63eae537018a758b29f6c9bc39e3d36be1710179 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Apr 21 17:41:40 2016 -0700 |
committer | Rob Landley <rob@landley.net> | Sat Apr 23 13:27:53 2016 -0500 |
tree | 7ae3bbe620085520a50260d2d1f531a6bcf06ca8 | |
parent | 14ca871ebbc17f70769e67b3150890153b77b425 [diff] |
Fix more to a non-tty. And add a test.
diff --git a/toys/pending/more.c b/toys/pending/more.c index 55bed36..59b5c61 100644 --- a/toys/pending/more.c +++ b/toys/pending/more.c
@@ -63,7 +63,7 @@ static void do_cat_operation(int fd, char *name) { if (toys.optc > 1) show_file_header(name); - xsendfile(0, 1); + xsendfile(fd, 1); } void more_main()