From 63eae537018a758b29f6c9bc39e3d36be1710179 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 21 Apr 2016 17:41:40 -0700 Subject: Fix more to a non-tty. And add a test. --- toys/pending/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending') 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() -- cgit v1.2.3