8131 Commits
Author SHA1 Message Date
Tim Kientzle 3e119719a1 IFC: test suite builds with 1.x API
SVN-Revision: 181
2008-08-11 16:24:50 -04:00
Tim Kientzle 1072ba851b IFC: Colin's __dead2 markers
SVN-Revision: 180
2008-08-09 09:15:31 -04:00
Joerg Sonnenberger cfc5c30187 Fix man page formatting.
SVN-Revision: 179
2008-08-05 07:08:52 -04:00
Joerg Sonnenberger e53d03f103 Revert unintentional commit of wip changes for
archive_write_set_compression_compress.c.

SVN-Revision: 178
2008-08-04 03:31:57 -04:00
Tim Kientzle 921deb8f72 IFC
SVN-Revision: 177
2008-08-03 13:26:20 -04:00
Tim Kientzle 5268756cc2 IFC
SVN-Revision: 176
2008-08-03 12:46:13 -04:00
Tim Kientzle dfc19b17dd SVN-Revision: 175 2008-08-03 12:40:32 -04:00
Joerg Sonnenberger 4ccfe5c1a5 Quote string before writing them to the shell script.
SVN-Revision: 174
2008-07-31 05:18:34 -04:00
Joerg Sonnenberger beca31d267 Restore sparse file handling from before 146023:
Don't write to the last block if the filesystem implements
the XSI extension for ftruncate.

While here, flush the the stat cache again after the write in
the fallback case.

SVN-Revision: 173
2008-07-31 03:33:17 -04:00
Tim Kientzle 9e7cfdf693 Fix building in separate dir.
Submitted by:	Toby Peterson

SVN-Revision: 172
2008-07-30 17:02:21 -04:00
Tim Kientzle 66b4a92a70 Modify test_basic to verify that cpio is ignoring umask
when copying files.  In particular, this verifies the
recent fix to cpio.c to set ARCHIVE_EXTRACT_PERM.

SVN-Revision: 171
2008-07-29 16:48:57 -04:00
Tim Kientzle f350d8f05f Minor corrections: remove unused vars, fix a couple of
type issues.

SVN-Revision: 170
2008-07-29 16:28:13 -04:00
Tim Kientzle fa66a06c3c Preserve all permissions by default.
In particular, this fixes the curiosity that cpio -dumpl would
apply umask to the new dirs (which got created) but not
to the new files (which are just links to the existing files).

Thanks to Kris Kennaway for reminding me about this one.

SVN-Revision: 169
2008-07-29 16:27:19 -04:00
Tim Kientzle 5b5d1d58f9 If the size is unknown, don't limit data writes.
This seems to straighten out some of the disk-write semantics
and should solve a problem with Zip extraction when the
size of the file is not known in advance.

SVN-Revision: 168
2008-07-26 17:20:32 -04:00
Tim Kientzle 1480be9f2d Provide a hook for unsetting the size field.
Use it in the link resolver for correctly marking hard links
where the size of the linked-to file is actually unknown.

SVN-Revision: 167
2008-07-26 17:17:48 -04:00
Tim Kientzle da0cee619d If atime is not set, use the time at which the archive_write_disk
object was created, instead of a default zero.
PR:		bin/124915

SVN-Revision: 166
2008-07-26 06:35:02 -04:00
Tim Kientzle a5756dbb67 Add a bitmap in the entry to track which values have been
set.  Change the ad hoc symlink and hardlink tracking to use
the new bitmap, add tracking for atime and size fields.
This is motivated by some errors restoring Zip entries where
the file size is not known and by errors restoring file
times (utimes(2) sets both atime and mtime, old tar archives
only store mtime).
PR:		bin/124915

SVN-Revision: 165
2008-07-26 06:32:39 -04:00
Joerg Sonnenberger 357fd43298 - don't push data line wise to the compressor, accumulate it
in local buffer
- reduce required error checking as fewer writes to the
  compressor need attention
- explicitly initialise the work string, don't depend on memset
  for that
- optimise inner loop of sed backend to take ~25% less time
- simplify and optimise uuencoding to always work on full lines,
  padding them explicitly with NUL (harmless changes in output).
  Overall uuencoding requires more than 50% less time.

SVN-Revision: 164
2008-07-25 21:00:11 -04:00
Joerg Sonnenberger 50a1e7ec3d At least on NetBSD, uudecode -o doesn't work, so use -p instead.
SVN-Revision: 163
2008-07-25 20:46:35 -04:00
Joerg Sonnenberger 79a91ee3c4 Avoid NULL dereference when destroy functions are called more
than once.

SVN-Revision: 162
2008-07-25 20:42:01 -04:00
Joerg Sonnenberger 87db6efc05 - include stdlib.h and string.h explicit as functions are used
- defer freeing the string buffer into new destroy function

SVN-Revision: 161
2008-07-25 20:41:15 -04:00
Joerg Sonnenberger 7cd4b6faf5 Revert 145937.
SVN-Revision: 160
2008-07-25 20:39:43 -04:00
Joerg Sonnenberger df052088aa - include stdlib.h and string.h explicit as functions are used
- defer freeing the string buffer into new destroy function

SVN-Revision: 159
2008-07-25 19:56:44 -04:00
Joerg Sonnenberger 69a494dfd0 Be consistent with mtree reader and use rdev in the writer.
SVN-Revision: 158
2008-07-25 19:53:21 -04:00
Tim Kientzle 12cb13f152 Make ad-hoc use of the test program a little simpler by
searching a few standard locations for the reference files
and aborting if we can't find them.

SVN-Revision: 157
2008-07-25 18:24:02 -04:00
Tim Kientzle 161453fdd4 Add Mtree writer to FreeBSD makefile
SVN-Revision: 156
2008-07-25 18:23:04 -04:00
Tim Kientzle a98c0d124c Mark some unused variables.
SVN-Revision: 155
2008-07-25 18:22:38 -04:00
Joerg Sonnenberger cedb073b0b Add write support for mtree.
Add entries to PROJECTS about checksum support in mtree backend.

SVN-Revision: 154
2008-07-25 07:55:18 -04:00
Joerg Sonnenberger 7200debba3 Drop ARCHIVE_FORMAT_MTREE_V1 and ARCHIVE_FORMAT_MTREE_V2,
just use ARCHIVE_FORMAT_MTREE.

SVN-Revision: 153
2008-07-24 22:27:58 -04:00
Tim Kientzle ff6a91dd78 Report the filename for a suspected growing file.
SVN-Revision: 152
2008-07-06 05:43:36 -04:00
Tim Kientzle e0778e9b70 Minor code reorg.
SVN-Revision: 151
2008-07-06 05:43:03 -04:00
Tim Kientzle 876ae79b4b Preserve owner if cpio is run as root.
Submitted by:	Kris Kennaway

SVN-Revision: 150
2008-07-06 05:37:45 -04:00
Tim Kientzle 3686bcd469 Portable release of libarchive 2.5.5, bsdtar 2.5.5, bsdcpio 1.0.0
SVN-Revision: 149
2008-07-02 19:24:10 -04:00
Tim Kientzle 23b1e6789c Include a missing test file in the portable build.
SVN-Revision: 148
2008-07-02 19:02:50 -04:00
Tim Kientzle cbfef1c040 Ignore -l for non-regular files. Comment that this is
still open to negotiation.

SVN-Revision: 147
2008-07-02 18:28:34 -04:00
Tim Kientzle 8f02460f42 IFC: Comment
SVN-Revision: 146
2008-06-30 18:45:22 -04:00
Tim Kientzle fd950989e5 Don't try to hardlink dirs for -pl; this always fails
and generated an annoying warning for every directory.

SVN-Revision: 145
2008-06-30 18:42:49 -04:00
Tim Kientzle 71362fca17 On systems that use SysV-style SGID handling for directories,
the SGID bit can be set intrinsically by the system.
When handling EXTRACT_PERM (tar -p) on such systems, we need
to do an additional chmod() on directories, even if the
dir creation used the correct full mode.

SVN-Revision: 144
2008-06-26 20:08:58 -04:00
Tim Kientzle 3bda5744a4 When hardlinking files for -l by using archive_write_header(),
ensure that we're just doing a bare hardlink without any accompanying
data.  (Remember that cpio allows hardlinks to have data.)
Otherwise, -l creates a link and then opens the linked files
for overwrite, resulting in the files being erased.

SVN-Revision: 143
2008-06-26 04:51:21 -04:00
Tim Kientzle abbe119a7d Split the reference file here out into a separate file for
easier maintenance.

SVN-Revision: 142
2008-06-25 17:45:52 -04:00
Tim Kientzle a99e2947f6 Eliminate some autoconf options that are no longer in use.
SVN-Revision: 141
2008-06-24 18:45:59 -04:00
Tim Kientzle 10b835e08c Apparently, linux/ext2_fs.h is entirely different from ext2/ext2_fs.h
and is, in fact, in the process of being deprecated.  Use the latter
exclusively.

SVN-Revision: 140
2008-06-24 18:13:31 -04:00
Tim Kientzle c52ed4f256 IFC
SVN-Revision: 139
2008-06-24 18:08:06 -04:00
Tim Kientzle a322fd30da IFC
SVN-Revision: 138
2008-06-24 18:07:17 -04:00
Tim Kientzle 13a0e1cbdc Update the NEWS file with a terse summary of recent changes
SVN-Revision: 137
2008-06-21 06:58:08 -04:00
Tim Kientzle 4ab2095925 When using -l, if a link fails because of a cross-device link,
ignore the -l for this entry and copy instead.

SVN-Revision: 136
2008-06-21 06:56:12 -04:00
Tim Kientzle 114420d46b Security failures are ARCHIVE_FAILED (cannot continue with this
operation), not ARCHIVE_WARN.

SVN-Revision: 135
2008-06-21 06:55:14 -04:00
Tim Kientzle 16d2d12641 IFC
SVN-Revision: 134
2008-06-21 06:54:15 -04:00
Tim Kientzle cdb7f73b3e Gratuitous long option synonyms from GNU tar.
SVN-Revision: 133
2008-06-20 15:15:24 -04:00
Tim Kientzle 1616af95c4 Deal with cross-device links by falling back and just copying
the file.

SVN-Revision: 132
2008-06-19 18:25:03 -04:00