aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-21 17:41:40 -0700
committerRob Landley <rob@landley.net>2016-04-23 13:27:53 -0500
commit63eae537018a758b29f6c9bc39e3d36be1710179 (patch)
tree7ae3bbe620085520a50260d2d1f531a6bcf06ca8
parent14ca871ebbc17f70769e67b3150890153b77b425 (diff)
downloadtoybox-63eae537018a758b29f6c9bc39e3d36be1710179.tar.gz
Fix more to a non-tty.
And add a test.
-rw-r--r--toys/pending/more.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/more.c b/toys/pending/more.c
index 55bed363..59b5c615 100644
--- a/toys/pending/more.c
+++ b/toys/pending/more.c
@@ -63,7 +63,7 @@ static int prompt(FILE *cin, const char* fmt, ...)
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()