1. 27 Dec, 2017 9 commits
    • Mark Adler's avatar
      pigz version 2.4 · fe822cb4
      Mark Adler authored
      fe822cb4
    • Mark Adler's avatar
    • Mark Adler's avatar
      Return an exit code of 1 if any anomalous input encountered. · 21a79f15
      Mark Adler authored
      Previously pigz would return an exit code of 0 if there were no
      serious errors, e.g. I/O errors or insufficient memory. Now pigz
      will return 1 if it encounters any issues, such as invalid or
      unrecognized compressed data, file names without the expected
      suffix, trying to overwrite a file, etc. Since pigz can process
      multiple input files, it will return an exit code of 0 if there
      were no issues, and will return an exit code of 1 if one or more
      of the inputs had an issue.
      21a79f15
    • Mark Adler's avatar
      Disallow an empty suffix. · 228c00cc
      Mark Adler authored
      An empty suffix with forced compression would result in both the
      original and compressed file being deleted.
      228c00cc
    • Mark Adler's avatar
      Improve compatibility for cross-platform testing. · 9c1eaa17
      Mark Adler authored
      Avoid warning for ignoring chown() return value on some glibc's,
      and change compiler from cc to gcc. Sometimes the (void) before
      chown() is not sufficient to signal the programmer's intent to
      ignore the return value. (Thank you return-value police.) This
      commit kills that gcc warning just for copymeta(). Using pragma
      then required ignoring a warning for versions of gcc that don't
      recognize it (when using -Wall). Finally, gcc is used instead of
      cc for platforms that don't make that equivalency.
      9c1eaa17
    • Mark Adler's avatar
      57864e60
    • Mark Adler's avatar
      Add --synchronous option to push written data to permanent storage. · b505e4eb
      Mark Adler authored
      This adds an option present in gzip to improve interoperability.
      b505e4eb
    • Mark Adler's avatar
      Process options first. · fc10bb00
      Mark Adler authored
      Change command line processing to go through all of the options
      and associated parameters first, and then go through the command
      line again, processing the file names using the resolved options.
      In addition, if "-" follows a "--", then consider the "-" to be
      a file name instead of stdin. Both of these changes are to be more
      compatible with gzip, and are not compatible with the previous
      versions of pigz, which would process the options and file names
      in the sequence they appear.
      fc10bb00
    • Mark Adler's avatar
      Pointless formatting changes. · 5d5d268c
      Mark Adler authored
      Use // comments througout, improve comments style, move opening
      braces to function definition lines.
      5d5d268c
  2. 25 Dec, 2017 5 commits
  3. 14 Dec, 2016 1 commit
    • Mark Adler's avatar
      Make the build a little more portable for non-gnu make and cc. · 4e5047ba
      Mark Adler authored
      BSD make doesn't understand $^, and the Sun make has a problem with
      $<. This avoids the automatic variables by explicitly specifying
      the objects and targets. This also avoids a compiler complaint for
      a #error directive by putting the message in quotes.
      4e5047ba
  4. 13 Dec, 2016 1 commit
  5. 12 Dec, 2016 4 commits
    • Mark Adler's avatar
      be0881dd
    • Mark Adler's avatar
      Add -M, --time option to store or restore the modification time. · f316d4aa
      Mark Adler authored
      This replaces the previous -M for --maxsplits with -J. (Hopefully
      no one was using -M. Probably not.) This fills a hole left by the
      change of -n, --no-name to also not store/restore the modification
      time. Now -nM will store/restore the modification time, but not
      the name. The full set of combinations is -n for neither, -N for
      both, -nM for just the time, and -Nm for just the name. Note that
      the order is important. -n or -N will overwrite the effect of a
      preceding -m or -M. The default for compression is -N, and the
      default for decompression is -n. So -N or -n can be left off for
      those cases, respectively.
      f316d4aa
    • Mark Adler's avatar
      Change -n, --no-name to also not store or restore mod time. · 33c140e5
      Mark Adler authored
      Though this is not consistent with the name of the option, this
      commit makes pigz compatible with gzip's use of -n and --no-time.
      33c140e5
    • Mark Adler's avatar
      Use -m instead of -T for --no-time, for gzip compatibility. · 6fda8570
      Mark Adler authored
      Apparently gzip has supported -m all along to not include the
      modify time, but it wasn't in the command help list. This commit
      adds -m as an alias for --no-time. -T is retained as an alias for
      --no-time for backwards compatibility with previous versions of
      pigz.
      6fda8570
  6. 15 Oct, 2016 3 commits
  7. 12 Oct, 2016 1 commit
    • Mark Adler's avatar
      Avoid the use of variable length arrays. · bc280f82
      Mark Adler authored
      Microsoft has not implemented and refuses to implement C99 aspects
      that are not also part of C++11 or later C++ standards. (Note that
      the "99" in C99 refers to 1999. That was the year my younger son
      was born, who is now applying for college.)
      bc280f82
  8. 11 Oct, 2016 1 commit
    • Mark Adler's avatar
      Produce Zip64 format as needed when using -K (--zip). · 4079828f
      Mark Adler authored
      Before -K would fail when the compressed or uncompressed data, or
      the offset of the central directory, was 4 GiB or more. Now -K
      will use Zip64 data descriptors in the local and central headers,
      and will use the Zip64 end records as needed.
      4079828f
  9. 02 Oct, 2016 5 commits
  10. 27 Sep, 2016 1 commit
  11. 16 Aug, 2016 1 commit
  12. 30 May, 2016 7 commits
  13. 20 Aug, 2015 1 commit