Commit graph

8 commits

Author SHA1 Message Date
minskim
3f8fb63c0c Update pax to 20051108. The previous version failed to handle the -X
option, which is used in print/teTeX3-texmf.  The only difference from
the pax in src is that tar does not support the --chroot option if
fchroot(2) is not available.


Major changes and bug fixes since 20040802:

PR/18759: FUKAUMI Naoki: pax/tar dot-dot handling broken
PR/18840: Frederick Bruckman:  Fix for PR/18663 incomplete pax symlink handling
This patch makes ``--insecure'' do something. Now if ``--insecure''
is not set (the default) we do a realpath(3) in all the pathnames
that we are trying to create and if either realpath fails, or the
path is outside our working directory, we print a warning and die.
This maybe too strict and might fail on valid archives that create
symlinks and directories in the wrong order.

PR/31923: Sergey Svishchev: pax-as-tar ignores -k, overwrites existing files
Fix from Onno van der Linden

PR/30132: Juan RP: tar --chroot refuses to extract files.
fchroot() changes the effective path, so we need to call updatepath().

Apply user supplied patterns first before applying actions for -A. This way pax
behavior WRT to patterns lines up with the example in the documentation
and how other implementations do it as well since -A is a non-standard
option/behavior. Fixes items noted in PR#23776

Add an option --chroot to tar.  Causes it to chroot(".") before doing
an extract.  With -h this will cause existing absolute symlinks to be treated
as relative to the current directory.
Helps sysinst handle existing symlinks in the target system.
Remove 'L' from the usage (got spilt into 'h' and 'H' many moons ago)
Add 'S' to usage, and put into correct place in options list.

PR/27213: Greg A. Woods: pax doesn't honour SIGPIPE when listing
But always exit, not just on SIGPIPE.

Properly handle "cpio" archives where the last hardlink includes the
data of a file. This fixes PR bin/26514.

PR/20228: Simon Burge: pax has problems reading a particular cpio archive
The problem here is that the archive is too short (< 512 bytes). The
buffer routines, try to read at least 512 bytes, even when we try to determine
what format file we have, which is wrong.

Don't leave arcn->org_name pointing to ftent->fts_path, if we being cpio
then ftent is freed just below.  Take a copy of the name and point org_name
at the copy.
Should fix PR/30627 (the fix in the PR will break pax and tar!)

PR/30167: J.T. Conklin: NetBSD tar does not support GNU tar --no-recursion flag

Fix from PR#29290. Properly terminate the cpio_longopts struct so an unknown
option doesn't run off the end and core dump

Fix broken cpio(1) option handling:
- "cpio -i -t" should list the contents of a file, not extract it.
- Don't extract a file when only option "-d" is given.
Patch supplied by Paul Ripke in PR bin/26513.

PR/27212: Greg A. Woods: Accept "-C <dirname>" inside filelists in addition
to "-C\n<dirname>".
But we are not making it the default output option as the patch suggests.

PR/19490: Julio Merino: Teach tar about --sparse, -S option.
Do it for cpio too.

PR/27208: Greg A. Woods: pax must call options() before using syswarn()
or tty_warn()

PR/20071: Perry Metzger: --extract handling is broken. This patch fixes
Perry's example.
2005-12-01 03:00:01 +00:00
jlam
ff44898db4 Update archivers/pax to 20040802 (latest version on src HEAD). Changes
from previous include:

  - include a pax2nbcompat script to ease importing from src HEAD
    into pkgsrc.

  * for copy mode, show more meaningful information on SIGINFO.
2004-08-21 03:28:49 +00:00
grant
fd78a9be8e sync pax with src/ from 20040620, includes many bug fixes including
properly handling broken archives.
2004-06-20 10:11:02 +00:00
grant
7f81d2f7df sync with -current:
Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. confirmed to the board by Keith Muller.
2003-12-20 04:45:04 +00:00
erh
4f33af102c Fix a call to ftree_add. s/NULL/0/ 2003-12-05 16:34:32 +00:00
jlam
80e302b380 Update archivers/pax to 20030905. Changes from previous version include
syncing with -current, making this build using libnbcompat-20030829, and
cleaning up the configure script and Makefile.
2003-09-05 18:40:47 +00:00
jschauma
95397dc7b6 Synch with latest changes by simonb@ in basesrc and as a result, bump
the version to todays date:
Add support for gnutar's -O "extract to stdout" option.
2003-07-08 18:40:28 +00:00
grant
32600ff5a4 Import of NetBSD-current's pax (replacing the older pkgtools/pax).
NetBSD pax is the POSIX standard archiver with many extensions.

pax will read, write, and list the members of an archive file, and will
copy directory hierarchies.

pax operation is independent of the specific archive format, and supports
a wide variety of different archive formats.

This package uses pkgtools/libnbcompat, and is known to build on
Solaris 9, Slackware 8.1 and Darwin 6.6. Please send-pr(1) if this
package is broken on your platform.
2003-06-23 11:45:21 +00:00