aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys/posix/file.c b/toys/posix/file.c
index bab59e57..c7c72cd1 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -249,6 +249,8 @@ static void do_regular_file(int fd, char *name, struct stat *sb)
if (ver)
xprintf(", requires at least v%d.%d to extract", ver/10, ver%10);
xputc('\n');
+ } else if (len>4 && strstart(&s, "BZh") && isdigit(*s)) {
+ xprintf("bzip2 compressed data, block size = %c00k\n", *s);
} else {
char *what = 0;
int i, bytes;