Skip to content

Commit

Permalink
Merge pull request #4691 from lindig/private/christianlin/gzip
Browse files Browse the repository at this point in the history
Don't use --force in gzip decompress
  • Loading branch information
lindig committed Apr 26, 2022
2 parents 2386d7a + ab7dd15 commit af4fc08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ocaml/libs/xapi-compression/xapi_compression.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ module Make (Algorithm : ALGORITHM) = struct
let open Safe_resources in
Unixfd.with_pipe ~loc:__LOC__ () @@ fun zcat_out zcat_in ->
let args =
if mode = Compress then [] else ["--decompress"] @ ["--stdout"; "--force"]
match mode with
| Compress ->
[]
| Decompress ->
["--decompress"; "--stdout"]
in
let stdin, stdout, close_now, close_later =
match input with
Expand Down

0 comments on commit af4fc08

Please sign in to comment.