summaryrefslogtreecommitdiff
path: root/bin/pax/tar.c
AgeCommit message (Expand)Author
2018-09-13Use the new libc uid_from_user() and gid_from_group() instead ofTodd C. Miller
2017-09-16Carefully add casts to silence clang sign-compare warnings. ok millert@Otto Moerbeek
2017-09-12there is no offical way to get the max value of time_t, but this one worksOtto Moerbeek
2017-09-08Avoid clang warning and make code better by using a signed long;Otto Moerbeek
2016-08-26Don't need <sys/time.h> or "options.h" herePhilip Guenther
2016-08-25Replace name_{uid,gid}() with the libc routines user_from_uid() andPhilip Guenther
2016-08-14Remove many unnecessary casts. Verified by comparing generated code onPhilip Guenther
2016-08-14Replace u_quad_t with unsigned long long and replace "uqd" with "ull" inPhilip Guenther
2016-02-15To archive a 101 character absolute path in ustar format we mustPhilip Guenther
2015-03-17Add PAX_IS_{REG,HARDLINK,LINK} macros to simply many file type testsPhilip Guenther
2015-03-15Handle tar -o by setting the tar_nodir directly instead of faking up aPhilip Guenther
2015-03-09Unrevert post-unlock:Philip Guenther
2015-02-21Recent changes haven't been completely stable, so revert for the 5.7 releasePhilip Guenther
2015-01-29Correct buffer overflow in handling of pax extension headers, caughtPhilip Guenther
2014-02-19Map negative mtimes to zero instead of skipping the affected files.Philip Guenther
2014-01-08Zap trailing whitespacePhilip Guenther
2014-01-08Eliminate poisonous LONG_OFF_T conditionalPhilip Guenther
2014-01-08Mark some functions as printf-like and fix a bogus format stringPhilip Guenther
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
2013-07-03cpio and ustar formats store times in octal fields that are 11 charactersPhilip Guenther
2013-04-11The tweaks I suggested to the previous diff resulted in the typeflagPhilip Guenther
2013-04-09Add extended header support for ustar. Currently only path and linkpath areFederico G. Schwindt
2013-03-27Enable support for write_opt=nodir for ustar archives which helps to fixVadim Zhukov
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2010-12-02a -N option for tar that uses numeric only IDs, useful for cross systemTed Unangst
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2006-03-04Properly take into account that the name and prefix field in the tarOtto Moerbeek
2005-12-17Avoid sign extend when writing time stamps; fixes "tar: Ustar headerOtto Moerbeek
2005-06-13Fix writing of old-style tar headers. Filenames and linknames actuallyOtto Moerbeek
2005-04-28Use a special crafted string copy function to copy data from ustarOtto Moerbeek
2005-04-21fix strlcpy abuse in pax - this commit turns potential overflows intoBob Beck
2005-04-14add the prefix length to nlen for ustar; ok otto millertMarkus Friedl
2005-04-10Handle path names of exactly 100 chars correctly. Based on a diffOtto Moerbeek
2004-10-23If a uid or gid does not fit into into the tar header, issue a warningOtto Moerbeek
2004-04-16spacingTheo de Raadt
2004-03-30Add support for expanding GNU long links from NetBSD. I've had thisTodd C. Miller
2003-06-26protos. this requires changing the api for the *trail() functions a bitTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-10-18Pull in some changes from NetBSDTodd C. Miller
2002-10-16sprinkle const; mostly from NetBSDTodd C. Miller
2002-10-16Fix comment typos; most from NetBSD and FreeBSDTodd C. Miller
2002-10-16kill registerTodd C. Miller
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
2001-12-19When writing tar and ustar archives, zero out the header before weTodd C. Miller
2001-12-19More strlcpy() backout. Various tar programs require ustar headerTodd C. Miller
2001-12-19Back out a strncpy -> strlcpy conversion. When writing old styleTodd C. Miller
2001-06-26really use strlcpy.lebel
2001-06-26use strlcpy vs strncpy+a[len-1]='\0'lebel
2001-05-26Get rid of NET2_FTS and NET2_REGEX #ifdefs since they are useless.Todd C. Miller