From 4574e51645c58f9dd7f7f6f87ef4cc4a8aecd164 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 27 Jul 2002 20:07:12 +0000 Subject: [PATCH] Added test for HA archiver --- lib/unpacker.c | 1 + mbsebbs/filesub.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/unpacker.c b/lib/unpacker.c index 4c505cc7..47b664e9 100644 --- a/lib/unpacker.c +++ b/lib/unpacker.c @@ -64,6 +64,7 @@ char *unpacker(char *fn) if (memcmp(buf,"ZOO",3) == 0) return (char *)"ZOO"; if (memcmp(buf,"`\352",2) == 0) return (char *)"ARJ"; if (memcmp(buf,"Rar!",4) == 0) return (char *)"RAR"; + if (memcmp(buf,"HA",2) == 0) return (char *)"HA"; if (memcmp(buf,"UC2\0x1a",4) == 0) return (char *)"UC2"; if (memcmp(buf,"BZ",2) == 0) return (char *)"BZIP"; if (memcmp(buf,"MSCF",4) == 0) return (char *)"CAB"; /* M$ CAB files */ diff --git a/mbsebbs/filesub.c b/mbsebbs/filesub.c index 6e12c879..ca8a7265 100644 --- a/mbsebbs/filesub.c +++ b/mbsebbs/filesub.c @@ -717,6 +717,7 @@ char *GetFileType(char *fn) if (memcmp(buf, "ZOO", 3) == 0) return (char *)"ZOO"; if (memcmp(buf, "`\352", 2) == 0) return (char *)"ARJ"; if (memcmp(buf, "Rar!", 4) == 0) return (char *)"RAR"; + if (memcmp(buf, "HA", 2) == 0) return (char *)"HA"; if (memcmp(buf, "MZ", 2) == 0) return (char *)"EXE"; if (memcmp(buf, "\000\000\001\263", 4) == 0) return (char *)"MPEG"; if (memcmp(buf, "MOVI", 4) == 0) return (char *)"MOVI";