summaryrefslogtreecommitdiff
path: root/bin/pax/pat_rep.c
AgeCommit message (Collapse)Author
2005-08-05strip multiple leading slashes from absolute paths; ok beck@Damien Miller
2005-04-21fix strlcpy abuse in pax - this commit turns potential overflows intoBob Beck
potential non-spec compliance - the use of these fields as strings needs to be revisited more thouroughly. ok millert@ otto@
2004-06-11Correct the code that identifies bogus regexps; Jared YanovichTodd C. Miller
2004-06-11Fix backref substitution in -s mode. Problem found and fix verifiedTodd C. Miller
by Jared Yanovich.
2004-04-16spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-02-03typos;Jason McIntyre
from netbsd(svs+pr@grep.ru) suggested by deraadt@
2002-11-29inconsistant spelling; torh@bogus.netTheo de Raadt
2002-10-16sprinkle const; mostly from NetBSDTodd C. Miller
2002-10-16kill registerTodd C. Miller
2002-07-17Pass the size of the name buffer to rep_name() for use with strlcpy().Christian Weisgerber
Fixes truncation of replacement string. ok millert@
2002-06-09revert one of wrong strlcpy() changeJun-ichiro itojun Hagino
2002-06-09strlcpy fix, PR 2727Jun-ichiro itojun Hagino
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-04Eat backslashes in regex's so things like:Todd C. Miller
-s '/\/bin\/cat/\/bin\/dog/' work. This means we have to be a bit more clever in finding the pattern delimeters (ie: not strchr).
2001-07-04Fix -s option, which never worked. We need to pass in the input stringTodd C. Miller
to resub() so we can copy the non-matching portion of the string to the destination. Closes PR #1889
2001-05-26Get rid of NET2_FTS and NET2_REGEX #ifdefs since they are useless.Todd C. Miller
Change NET2_STAT into LONG_OFF_T for portability to systems with a 32bit off_t.
2001-05-16use proper str*cpy functions instead of home grown one, spaces; millert@ okMichael Shalayeff
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-06-04Fix usage of l_strncpy() (noticed by Theo) and make l_strncpy()Todd C. Miller
pad with NULL's like strncpy(3). This eliminates the need for zf_strncpy(); ocurrences of zf_strncpy() have been changed to l_strncpy().
1997-04-05Strip leading '/' of pathnames (only in tar mode). -S option turnsTodd C. Miller
this off like GNU tar.
1997-03-30Adjust the input string by the right amount if the pattern wasn't at theTodd C. Miller
beginning. From NetBSD (mycroft).
1997-02-27fix pr system/124, reported by Janjaap van Velthooven (janjaap@stack.nl).michaels
1996-10-27Initial cut -C support in paxtar. Exceeds GNU tar by quite a bit.Jason Downs
General pax still seems to work ok.
1996-08-27Fix uses of strncpyThorsten Lockert
1996-06-23update rcsidTheo de Raadt
1996-06-11Correct compile warningsThorsten Lockert
Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD
1995-10-18initial import of NetBSD treeTheo de Raadt