Permalink
Commits on Jun 29, 2013
  1. Use ustar format in the test_option_b test

    praiskup authored and kientzle committed Jun 27, 2013
    .. because the ustar archive does not store SELinux context.  As the default
    format for bsdtar is "restricted pax" (trying to store xattrs and other
    things by default), the test failed on Fedora because our files have by
    default SELinux context set.  This results in additional data in tested
    archive ~> and the test failed because the archive was unexpectedly big:
    
     tar/test/test_option_b.c:41: File archive1.tar has size 3072, expected 2048
    
    Reviewed by Konrad Kleine <konrad.wilhelm.kleine@gmail.com>
  2. Rework the sign-extension to avoid left-shift of

    kientzle committed Jun 29, 2013
    an explicit negative number (which newer GCC complains about).
Commits on May 1, 2013
Commits on Apr 14, 2013
  1. Merge pull request #32 from bamiaux/fix_win32_exclusive_read_access

    kientzle committed Apr 14, 2013
    Do not require exclusive read access when reading files under windows
  2. Merge pull request #40 from juikim/master

    kientzle committed Apr 14, 2013
    Do not overwrite file size if the local file header has valid file size.
Commits on Apr 11, 2013
  1. Issue 314: A tar archive containing only a single 'g' record

    kientzle committed Apr 11, 2013
    should be treated as a valid empty tar archive.
    (Such archives are generated by 'git archive' from an empty
    repository.)
    
    http://thread.gmane.org/gmane.comp.version-control.git/220485
    http://code.google.com/p/libarchive/issues/detail?id=314
Commits on Apr 6, 2013
Commits on Apr 1, 2013
  1. Do not overwrite file size if the local file header has valid file size.

    juikim committed Apr 1, 2013
    This allows us to extract index.xml from Apple iWork '09 format files.
Commits on Mar 30, 2013
  1. Merge pull request #33 from xiw/overflow

    kientzle committed Mar 30, 2013
    Fix overflow checking in archive_entry_sparse_add_entry()
Commits on Mar 23, 2013
  1. Limit write requests to at most INT_MAX.

    kientzle committed Mar 23, 2013
    This prevents a certain common programming error (passing -1 to write)
    from leading to other problems deeper in the library.
Commits on Mar 16, 2013
  1. Fix overflow checking in archive_entry_sparse_add_entry()

    xiw committed Jan 20, 2013
    gcc will optimize the overflow check x + y < 0 (assuming x, y >= 0)
    into false, since signed integer overflow is undefined behavior in C.
    Use a safe precondition check instead.
Commits on Feb 24, 2013
  1. Fix test_archive_write_add_filter_by_name_lrzip test case.

    amejia1 committed Feb 24, 2013
    There's some bug in lrzip where small files cannot use 2nd stage
    compression.
    See http://ck-hack.blogspot.com/2012/03/lrzip-0612.html?showComment=1337356929450#c3154145708572533571
  2. Initialize buff to all zeros.

    amejia1 committed Feb 24, 2013
  3. Fix test cases for LZO write support.

    amejia1 committed Feb 24, 2013
    Some architectures would produce a bigger archive for compression
    level 9 than with the default level, possibly due to memory
    limitations.
    Fixes #303
Commits on Feb 23, 2013
  1. write_raw support from Marek Kubica

    kientzle committed Feb 23, 2013
    Merged branch 'feature/write-format-raw' of https://github.com/Leonidas-from-XIV/libarchive
  2. Revert "Allow adding extra CFLAGS with a configure option."

    amejia1 committed Feb 23, 2013
    This reverts commit 64b3cef.
    
    Apparently, setting CFLAGS won't override the preset AM_CFLAGS
    afterall. Not sure why this was giving me a problem before.
  3. Revert "Remove unnecessary use of arguments from AC_ARG_WITH([extra-c…

    amejia1 committed Feb 23, 2013
    …flags])."
    
    This reverts commit 6a917dc.
  4. Allow adding extra CFLAGS with a configure option.

    amejia1 committed Feb 23, 2013
    This is a convenience option to pass in extra CFLAGS without overriding other
    CFLAGS.
Commits on Feb 22, 2013
  1. Fix compiler warning from compiling with clang.

    amejia1 committed Feb 22, 2013
    Assigning from a read-only variable to a regular variable will issue
    a warning from clang.
  2. Add test case for adding pathnames with no leading './' in mtree format.

    amejia1 committed Feb 22, 2013
    libarchive should add the leading './' for such pathnames.
  3. mtree: fix line filename length calculation.

    falconindy authored and amejia1 committed Feb 22, 2013
    Fixes #301.
    Signed-off-by: Andres Mejia <amejia004@gmail.com>
Commits on Feb 21, 2013
Commits on Feb 17, 2013
  1. style fix

    kientzle committed Feb 17, 2013
  2. Merge pull request #38 from Leonidas-from-XIV/bugfix/optional-finish-…

    kientzle committed Feb 17, 2013
    …entry
    
    Make calls to the finish_entry callback optional
Commits on Feb 16, 2013
Commits on Feb 10, 2013
  1. Redo the strings sorting function, allocate/free memory as needed.

    amejia1 committed Feb 10, 2013
    This is the normal implementation of quicksort.
  2. Add a convenience function to sort a list of strings.

    amejia1 committed Feb 10, 2013
    This is useful for sorting a list of filepaths to
    multivolume RARs for example.
Commits on Feb 9, 2013
  1. Set offset to correct data type.

    martinpitt authored and amejia1 committed Feb 9, 2013
    Fixes #282
    Signed-off-by: Andres Mejia <amejia004@gmail.com>
  2. Use correct define for libarchive version number in archive.h.

    martinpitt authored and amejia1 committed Feb 9, 2013
    Signed-off-by: Andres Mejia <amejia004@gmail.com>
  3. Set a default error message if message passed in is NULL.

    bdrung authored and amejia1 committed Feb 9, 2013
    Signed-off-by: Andres Mejia <amejia004@gmail.com>