History log of /netbsd-src/bin/pax/pax.c (Results 1 – 25 of 52)
Revision Date Author Comments
# 2b9c0f9f 05-Aug-2024 riastradh <riastradh@NetBSD.org>

pax(1): Nix trailing whitespace.

No functional change intended.


# 96495ab1 05-Aug-2024 riastradh <riastradh@NetBSD.org>

pax(1): Only require getcwd if we're reading without --insecure.

No other paths use the result of getcwd.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work


# 3716b768 05-Aug-2024 riastradh <riastradh@NetBSD.org>

pax(1): Don't require open(".") or getcwd to work for list operation.

PR 44498: tar(1) unnecessarily demands that getcwd() work


# f8f9f441 24-Apr-2019 cheusov <cheusov@NetBSD.org>

Fix compilation failure with gcc-8.
Equal pointers to 'struct sigaction' should not be passed to sigaction(2).
So, we pass NULL as an "old sigaction" structure.


# 481188ea 02-Oct-2017 joerg <joerg@NetBSD.org>

Include time.h for time(2). Sort.


# 074c0c6e 29-Aug-2011 joerg <joerg@NetBSD.org>

static + __dead


# dbf8eeee 18-Jun-2011 christos <christos@NetBSD.org>

add --xz


# 2fe2731d 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.


# db822d22 05-Oct-2007 lukem <lukem@NetBSD.org>

Convert to using raise_default_signal(3).


# b7fac28c 03-Jul-2007 lukem <lukem@NetBSD.org>

In sig_cleanup(), attempt to reset the signal handler to the default
and raise the appropriate signal, so the correct wait status is
returned to the parent.


# 8ce1f4ff 29-Apr-2007 msaitoh <msaitoh@NetBSD.org>

fix typos


# 702d1ca5 23-Apr-2007 christos <christos@NetBSD.org>

PR/36194: Greg A. Woods: add a '-V' flag to pax for verbose summary without
listing (and other minor fixes)


# b419a254 11-Feb-2006 dsl <dsl@NetBSD.org>

Ensure we exit with an error if we don't actually do anything.
There are a lot of tty_warn(0,...) and syswarn(0,...) which probably ought
to be tty_warn/syswarn(1,...) to force an error exit. Howeve

Ensure we exit with an error if we don't actually do anything.
There are a lot of tty_warn(0,...) and syswarn(0,...) which probably ought
to be tty_warn/syswarn(1,...) to force an error exit. However some are
used in interactive parts (eg opening a continuation archive) where there
is a separate retry loop.
So we just pass a failure code out to main() - how quaint!
This should now cause the NetBSD build to fail when gzip tries to write
to a non-existant directory.
(I suspect there are still many errors that don't get reported correctly.)

show more ...


# cdec4ac1 11-Feb-2006 dsl <dsl@NetBSD.org>

Change all the 'return(x)' to 'return c'.
Makes some other searches I want to do a bit easier.


# 885e5587 11-Feb-2006 dsl <dsl@NetBSD.org>

Actually exit with error if we cannot open("."), make it more obvious that
we exit with error on signals.


# 15ea30eb 24-Apr-2005 christos <christos@NetBSD.org>

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 ``--inse

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.

show more ...


# 37fed211 10-Oct-2004 christos <christos@NetBSD.org>

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


# b2f78261 20-Jun-2004 jmc <jmc@NetBSD.org>

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulti

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

show more ...


# 5820cbfa 11-May-2004 christos <christos@NetBSD.org>

Welcome to WARNS=3


# 8fbcc555 13-Feb-2004 matt <matt@NetBSD.org>

When pax catches a signal and cleans up, make sure to remove any temporary
file that was being extracted to. This will prevent pax from leaving
droppings when you hit ^C.


# d20841bb 13-Feb-2004 wiz <wiz@NetBSD.org>

Uppercase CPU, plural is CPUs.


# 171d6532 27-Oct-2003 lukem <lukem@NetBSD.org>

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/com

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).

show more ...


# ed6ed8e6 13-Oct-2003 agc <agc@NetBSD.org>

Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.


# b5b29542 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 1301238a 08-Jul-2003 simonb <simonb@NetBSD.org>

Add support for gnutar's -O "extract to stdout" option.


123