overflows. As far as I can tell, none of these are
actually exploitable.
Thanks to David Remahl at Apple for pointing these out.
MFP4 after: 1 day
SVN-Revision: 77
the on-disk item doesn't exist or has a different type, skip it.
Fix the error message for the mismatch to not include errno.
Claim copyright for parts of this file.
SVN-Revision: 73
For directories and files, fstat the on-disk item, otherwise
lstat it. Copy device, gid/uid, mtime, nlink, permissions and
size if they have not been explicitly specified.
Skip entries that don't specify the type -- mtree requires this.
SVN-Revision: 71
as hardlinks, regardless of what order the underlying filesystem
returns the files in. This basically just involves segregating
the different groups of entries into separate dirs and specifying
those dirs -- in the correct order -- on the command line,
instead of relying entirely on the tree traversal.
This should fix a persistent test failure that's been reported
on Linux when using newer filesystems.
SVN-Revision: 58
it's a "FAILED" operation. In particular, this fixes a
relatively obscure problem writing ustar archives with bsdtar.
Prior to this, bsdtar would report additional bogus errors
because it kept trying to write the body even after the
header failed.
SVN-Revision: 57
string. Refactor substitution code by integrating it in
edit_pathname. This also makes the subst code apply to -c.
Add a very basic test case.
SVN-Revision: 55
Currently ignore them both, for optional it might be better to
mask errors later though.
Add device keyword support, this doesn't do any mapping though.
Fix link keyword, it always specifies a symlink independent of
whether the type keyword was processed already.
SVN-Revision: 49
Add support for flags keyword.
Add support for nlink keyword.
Sort time keyword correctly.
Ignore tags keyword. This should deal with include/exclude
later.
Add commented out entries for device, ignore and optional.
SVN-Revision: 46
lstat(2) as no symlink sohuld ever be referenced at this point.
After unlink(2)/rmdir(2) operations ensure that the stat cache
is reset.
SVN-Revision: 42
disagree on permissions. This can be observed with base.tgz of
an unprivileged NetBSD build.
After the change permissions are restored only for files that
have content attached. This works for almost ustar. For pax
archives with optional data in the second entry and cpio this
will fail for unprivileged user if the first entry doesn't allow
writing for the current user.
SVN-Revision: 39
Previously, this was failing for dir entries that had exactly
the right number of components, e.g. "a/" with --strip-components=1,
leading to odd warnings about "Invalid empty pathname"
PR: bin/121158
SVN-Revision: 37
extraction, warn about them:
$ bsdtar xfv tar.tgz foo bar
-rw-r--r-- 0 tim tim 0 May 8 19:50 foo
bsdtar: bar: Not found in archive
bsdtar: Error exit delayed from previous errors.
PR: bin/121598
SVN-Revision: 35