Merge copyfd and copy_file_chunk
diff --git a/libbb/print_file.c b/libbb/print_file.c
index a6df14e..cdd60e7 100644
--- a/libbb/print_file.c
+++ b/libbb/print_file.c
@@ -20,6 +20,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/stat.h>
 #include "libbb.h"
 
@@ -27,7 +28,9 @@
 extern void print_file(FILE *file)
 {
 	fflush(stdout);
-	copyfd(fileno(file), fileno(stdout));
+	if (copyfd(fileno(file), fileno(stdout), 0) == -1) {
+		exit(EXIT_FAILURE);
+	}
 	fclose(file);
 }