History log of /src/bin/pax/pat_rep.c |
Revision | | Date | Author | Comments |
1.32 |
| 05-Aug-2024 |
riastradh | pax(1): Nix trailing whitespace.
No functional change intended.
|
1.31 |
| 20-Mar-2019 |
gutteridge | branches: 1.31.12; pax: minor adjustments to comments in pat_rep.c
Amend several comments to match present reality (the functionality was added back in 2007).
|
1.30 |
| 13-Jun-2018 |
christos | branches: 1.30.2; PR/53362: Thomas Barabosch: Use strlcpy() to prevent theoretical buffer overflow.
|
1.29 |
| 07-Apr-2009 |
perry | branches: 1.29.46; Fixes from christos for pr-41167
XXX -X is still broken, but that wasn't part of this PR.
|
1.28 |
| 24-Feb-2008 |
joerg | branches: 1.28.8; 1.28.10; Kill pre-4.4BSD compat code.
|
1.27 |
| 04-May-2007 |
christos | branches: 1.27.4; 1.27.8; PR/36275: john at iastate dot edu: tar -s modifies symlink targets - This is explained in a comment in pat_rep.c inside mod_name(). I did not want to change the default behavior, so I added another modifier "s" which when set, the pattern will not modify the symlink destination. - While here I fixed another bug that was introduced before by the fix in PR/35257 where the renaming was happening twice since we called rep_name twice. - Finally if we are renaming hard of soft-link targets print the renames for those too.
|
1.26 |
| 29-Apr-2007 |
msaitoh | fix typos
|
1.25 |
| 24-Apr-2006 |
snj | It's "its."
|
1.24 |
| 11-Feb-2006 |
dsl | Change all the 'return(x)' to 'return c'. Makes some other searches I want to do a bit easier.
|
1.23 |
| 23-Jan-2005 |
jmc | 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
|
1.22 |
| 21-Jan-2005 |
dsl | Check for *ptr == 0, not ptr == NULL twice when validating -s xxxxx in tar mode. Fixes PR bin/29040 Also actually report an error to the tty if NET2_REGEX is defined.
|
1.21 |
| 27-Oct-2003 |
lukem | branches: 1.21.4; 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).
|
1.20 |
| 13-Oct-2003 |
agc | 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.
|
1.19 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
|
1.18 |
| 02-Feb-2003 |
wiz | Fix various spelling, grammar, and punctuation problems in comments, from Sergey Svishchev in PR 20164.
|
1.17 |
| 29-Nov-2002 |
rafal | Fix lossage with the GNU-tar -X compatibility code: the replacement pattern code did not properly deal with the fact that the replacement patterns built by the -X code were on the stack, happily saving pointers into last weeks' stack into the REPLACE structures.
Now, the replacement string is strdup'ed so it doesn't matter where the original expression came from or it's lifetime.
|
1.16 |
| 23-Oct-2002 |
christos | ignore files that contain "..", not symlink sources.
|
1.15 |
| 15-Oct-2002 |
christos | PR/18663: Jeremy Reed: pax/tar/cpio allows ".." in names. We now disallow it by default on both archive creation and extraction. Add --insecure option to override.
|
1.14 |
| 12-Oct-2002 |
christos | merge OpenBSD changes: - correct -C processing - add ability to read filenames and flags from a file - don't print dangerous escape sequences to the terminal - use strlcpy/strncpy properly. - handle tmpfile creation better. - improve documentation of options. - handle stdout/stderr list selection correctly. - kill gzip when we get interrupted. - simplify gzip setup. - add more flags to programs.
additional changes: - librmt processing. - set POSIXLY_CORRECT in options parsing. - prevent more string overruns. - support -T
we don't turn the switch on to replace tar and cpio yet.
|
1.13 |
| 31-Jan-2002 |
tv | branches: 1.13.2; Protect __RCSID and __COPYRIGHT from being invoked if not defined.
|
1.12 |
| 25-Oct-2001 |
lukem | - ansi KNF (just remove all the #ifndef __STDC__ prototype junk, leaving the ansi stuff) - use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*() - clean up the NET2_STAT stuff similar to ftpd; provide #defines and macros which select which cast to use, etc - clean up the NET2_FTS and NET2_REGEX #define use
|
1.11 |
| 17-Feb-2000 |
itohy | Cleanup and fix typos. Partially from FreeBSD.
|
1.10 |
| 22-Oct-1999 |
is | Implement positional -C argument to tar.
|
1.9 |
| 24-Mar-1999 |
pk | branches: 1.9.4; When substituting backreferences source from the pattern, not the replacement strings.
|
1.8 |
| 20-Jan-1999 |
mrg | implement the gnutar -X flag in terms of pax -s. fix some bugs in pax -s handling while i am here...
|
1.7 |
| 20-Jul-1997 |
christos | - Rename local warn so tty_warn that we can include <err.h> since this program uses err() and errx(). - Fix printf format strings. - Added WARNS=1; note - Added missing prototypes. - Split overloaded trail function into trail() and subtrail().
|
1.6 |
| 29-Mar-1997 |
mycroft | Adjust the input string by the right amount if the pattern wasn't at the beginning.
|
1.5 |
| 11-Jan-1997 |
tls | kill 'register'
|
1.4 |
| 21-Mar-1995 |
cgd | convert to new RCS id conventions.
|
1.3 |
| 14-Jun-1994 |
mycroft | Fix up RCS ids.
|
1.2 |
| 13-Jun-1994 |
jtc | Add RCS ID's
|
1.1 |
| 13-Jun-1994 |
jtc | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 13-Jun-1994 |
jtc | From 4.4 lite
|
1.9.4.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.13.2.2 |
| 16-Jun-2004 |
jmc | fix botched pullup from ticket #1021 and make sure this compiles on non-NetBSD hosts again. Also fixes PR#24481
|
1.13.2.1 |
| 07-Apr-2004 |
jmc | Pullup rev 1.14-1.21 (requested by rafal in ticket #1021)
Pullup pax to current version on trunk. Includes many fixes.
|
1.21.4.1 |
| 23-Jul-2005 |
snj | Apply patch (requested by riz in ticket #5512): Sync pax with HEAD of 2005-07-22.
|
1.27.8.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.27.4.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.28.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.28.8.1 |
| 13-Apr-2009 |
snj | Pull up following revision(s) (requested by christo in ticket #678): bin/pax/extern.h: revision 1.56 bin/pax/file_subs.c: revision 1.62 bin/pax/options.c: revision 1.104 bin/pax/pat_rep.c: revision 1.29 bin/pax/pax.h: revision 1.30 Fixes from christos for pr-41167 XXX -X is still broken, but that wasn't part of this PR.
|
1.29.46.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.30.2.3 |
| 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.30.2.2 |
| 21-Apr-2020 |
martin | Sync with HEAD
|
1.30.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.31.12.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|