Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-07-03 | cpio and ustar formats store times in octal fields that are 11 characters | Philip Guenther | |
wide, so they support up to 33bits. Take advantage of the extra bits by no longer forcing them into 32bit ints before the time_t conversion. This gets us another 204 years of range once time_t changes type ok deraadt@ tedu@ | |||
2013-04-11 | The tweaks I suggested to the previous diff resulted in the typeflag | Philip Guenther | |
being checked after it was overwritten by the next block read in. Eliminate the argument aliasing that led to this being overlooked by passing rd_xheader() the size and typeflag directly. problem discovery and ok fgsch@ | |||
2013-04-09 | Add extended header support for ustar. Currently only path and linkpath are | Federico G. Schwindt | |
handled. input from zhuk and guenther. tested by zhuk and sthen on a bulk. ok guenther. | |||
2013-03-27 | Enable support for write_opt=nodir for ustar archives which helps to fix | Vadim Zhukov | |
issues with some crappy tar archive readers out there that rely on the fact that directory entries ends up with "/" when created by GNU Tar, and now I'm finishing this commit message by mentioning people who gave input and okays: deraadt@ millert@ jmc@ | |||
2012-12-04 | remove some unnecessary sys/param.h inclusions | Theo de Raadt | |
2010-12-02 | a -N option for tar that uses numeric only IDs, useful for cross system | Ted Unangst | |
tar file manipulation. with advice from guenther and jmc. | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo de Raadt | |
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | |||
2006-03-04 | Properly take into account that the name and prefix field in the tar | Otto Moerbeek | |
header are not always NUL-terminated. This means there's room for 1 more byte in those field. This effectively reverts revs 1.13 and 1.14; ok jaredy@ millert@ | |||
2005-12-17 | Avoid sign extend when writing time stamps; fixes "tar: Ustar header | Otto Moerbeek | |
field is too small for foo" error messages when writing files with negative time stamps on 64 bit archs. ok millert@ deraadt@ | |||
2005-06-13 | Fix writing of old-style tar headers. Filenames and linknames actually | Otto Moerbeek | |
are not NUL terminated if the fill the whole field. ok millert@ jaredy@ | |||
2005-04-28 | Use a special crafted string copy function to copy data from ustar | Otto Moerbeek | |
headers to the generic pax structs. ustar is "funny" since some fields are not always NUL terminated. Old-style tar headers and ustar creation remains to be done. ok millert@ beck@ | |||
2005-04-21 | fix strlcpy abuse in pax - this commit turns potential overflows into | Bob Beck | |
potential non-spec compliance - the use of these fields as strings needs to be revisited more thouroughly. ok millert@ otto@ | |||
2005-04-14 | add the prefix length to nlen for ustar; ok otto millert | Markus Friedl | |
2005-04-10 | Handle path names of exactly 100 chars correctly. Based on a diff | Otto Moerbeek | |
from espie@. ok espie@ deraadt@ | |||
2004-10-23 | If a uid or gid does not fit into into the tar header, issue a warning | Otto Moerbeek | |
and use the uid/gid of nobody. Spotted by and ok drahn@, ok millert@ | |||
2004-04-16 | spacing | Theo de Raadt | |
2004-03-30 | Add support for expanding GNU long links from NetBSD. I've had this | Todd C. Miller | |
in my tree for ages but didn't have a proper test case. Thanks to otto@ for providing one. | |||
2003-06-26 | protos. this requires changing the api for the *trail() functions a bit | Theo de Raadt | |
2003-06-02 | Remove the advertising clause in the UCB license which Berkeley | Todd C. Miller | |
rescinded 22 July 1999. Proofed by myself and Theo. | |||
2002-10-18 | Pull in some changes from NetBSD | Todd C. Miller | |
o When extracting GNU tar archives, honor @LongLink long links/files o Add an option to prevent pax from prompting for the next volume upon premature end of archive. | |||
2002-10-16 | sprinkle const; mostly from NetBSD | Todd C. Miller | |
2002-10-16 | Fix comment typos; most from NetBSD and FreeBSD | Todd C. Miller | |
2002-10-16 | kill register | Todd C. Miller | |
2002-02-19 | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | Todd C. Miller | |
2002-02-16 | Part 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-12-19 | When writing tar and ustar archives, zero out the header before we | Todd C. Miller | |
do anything else to it. This lets us restore the strlcpy() calls and remove a buch of memset()s that were zeroing out individual fields of the header. | |||
2001-12-19 | More strlcpy() backout. Various tar programs require ustar header | Todd C. Miller | |
elements to be zero padded too. | |||
2001-12-19 | Back out a strncpy -> strlcpy conversion. When writing old style | Todd C. Miller | |
tar files we need to zero-pad the file name or many tars will get a directory checksum error trying to unpack the archive. This does not affect ustar archives (pax's default) though whether or not padding matters there still needs to be determined. | |||
2001-06-26 | really use strlcpy. | lebel | |
2001-06-26 | use strlcpy vs strncpy+a[len-1]='\0' | lebel | |
2001-05-26 | Get 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-16 | use proper str*cpy functions instead of home grown one, spaces; millert@ ok | Michael Shalayeff | |
2001-01-04 | spelling | Todd T. Fries | |
2000-01-21 | Work with files larger than 2 Gb; from NetBSD change by mycroft@netbsd.org | Thorsten Lockert | |
1998-10-19 | Fix off-by-one error when adding files of exactly 100 characters; ↵ | Todd C. Miller | |
wsanchez@apple.com | |||
1998-09-26 | fix storage of paths that are exactly 100 chars; mgw@pacbell.net | Todd C. Miller | |
1997-09-01 | i am bored enough to fix terminal space/tab uglies | Theo de Raadt | |
1997-07-25 | #if __STDC__ --> #ifdef __STDC__ | Michael Shalayeff | |
1997-06-04 | Fix 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-05 | Strip leading '/' of pathnames (only in tar mode). -S option turns | Todd C. Miller | |
this off like GNU tar. | |||
1997-04-02 | Deal with old-style tar archives with a directory specifier (extension). | Todd C. Miller | |
1997-03-25 | Back out my previous kludge to make tar files with short trailers work in | Todd C. Miller | |
favor of a simpler change--never try to do a media change when invoked as tar. This fixes problems that crop up if gzip exits unhappily and others. | |||
1997-02-16 | Correct handling of long filenames that has been stored with a prefix in | Thorsten Lockert | |
the archive; generate POSIXly correct padding of octal fields. | |||
1997-02-10 | Permit single block trailers differently. | Todd C. Miller | |
1996-08-27 | Fix uses of strncpy | Thorsten Lockert | |
1996-06-23 | update rcsid | Theo de Raadt | |
1996-06-11 | Correct compile warnings | Thorsten Lockert | |
Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD | |||
1995-10-18 | initial import of NetBSD tree | Theo de Raadt | |