diff options
author | Xin LI <delphij@FreeBSD.org> | 2009-05-18 22:27:42 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2009-05-18 22:27:42 +0000 |
commit | b873e82fedb8026ff397a976c38d4182a21da706 (patch) | |
tree | c176aed40df9d569e6997b325eceec4cbf609fb7 /compress.c | |
parent | 5c0c0b37134b0adf152fe50a421560992e8cd5f8 (diff) |
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compress.c b/compress.c index 0a30803c40d9b..28dacd338cec0 100644 --- a/compress.c +++ b/compress.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.61 2009/02/03 20:27:51 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.63 2009/03/23 14:21:51 christos Exp $") #endif #include "magic.h" @@ -76,6 +76,7 @@ private const struct { /* ...only first file examined */ { "BZh", 3, { "bzip2", "-cd", NULL }, 1 }, /* bzip2-ed */ { "LZIP", 4, { "lzip", "-cdq", NULL }, 1 }, + { "\3757zXZ\0",6,{ "xz", "-cd", NULL }, 1 }, /* XZ Utils */ }; private size_t ncompr = sizeof(compr) / sizeof(compr[0]); @@ -486,6 +487,8 @@ err: #else (void)wait(NULL); #endif + (void) close(fdin[0]); + return n; } } |