aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive/get_header_tar.c
AgeCommit message (Collapse)Author
2006-12-22tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko
(we have bb_copyfd_exact_size now for that kind of usage)
2006-11-26tar: refuse to untar files with "/../" componentsDenis Vlasenko
2006-11-26tar: correctly skip (and warn about) pax headers.Denis Vlasenko
plug memory leak. save 50 bytes. Wooohooo! we finally can unpack kernel tarballs!
2006-11-25tar: small fix and small optimizationDenis Vlasenko
2006-11-24tar: buglet fixDenis Vlasenko
2006-11-24tar: fix and sanitize handling of long filenames/linknamesDenis Vlasenko
(GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame
2006-11-24header_verbose_list: stop truncating file size in listingDenis Vlasenko
2006-11-24tar:Denis Vlasenko
* unpack: handle tar header fields which are not NUL terminated * pack: handle 4+GB files correctly * pack: refuse to store 101+ softlinks (was truncating link target name) * pack: mask mode with 07777
2006-10-10fixes from Vladimir Dronnikov <dronnikov@gmail.ru>Denis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-20"formated" -> "formatted" throughout the code base."Robert P. J. Day"
2006-07-16Cleaup read() and write() variants, plus a couple of new functions likeRob Landley
xlseek and fdlength() for the new mkswap.
2006-07-06Fix tar so it can extract git-generated tarballs, based on a suggestionRob Landley
from Erik Frederiksen.
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-05-29More size shrinkage.Rob Landley
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-04-02- typos: s/compatability/compatibility/g;s/compatable/compatible/g;Bernhard Reutner-Fischer
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-03-01use bb_xstrndup vs strndup. Thanks rfelker."Vladimir N. Oleynik"
2006-02-20Bug 640: a filename of length exactly 100 could bleed into the next field onRob Landley
display or extract. (Only shows up when no gnu longname extension, either because it's disabled or because tarball hasn't got it.)
2006-01-25just whitespaceTim Riker
2005-10-11There doesn't seem to be a standard header for makedev(), but this is close.Rob Landley
2005-07-20applying fix for:Paul Fox
0000262: tar -x doesn't believe it has reached the end of archive
2004-07-26BusyBox has no business hard coding the number of major and minor bits for aEric Andersen
dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-20Fix up hard linksGlenn L McGrath
2004-02-20A strict interpretation of the ustar format requires the type flag to beGlenn L McGrath
interpreted, we cannot depend on the file type being set in the mode field.
2004-02-19Add extra comments, freakout if a pax archive is encoutered.Glenn L McGrath
2004-02-17Remove debuggingGlenn L McGrath
2004-02-17Dont strip trailing '/' until _after_ i test to set if its there !Glenn L McGrath
2003-11-27Fix tar hard linksGlenn L McGrath
2003-11-21As we no longer use function pointers for read in common archiving codeGlenn L McGrath
archive_xread can be replaced with bb_full_read, and archive_copy_file with bb_copyfd* bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, they share a common backend.
2003-11-20Fix tar-handles-nested-exclude testcaseGlenn L McGrath
2003-11-17Dont free filename, its needed in the extracted files list.Glenn L McGrath
2003-11-15Fix memory leaksGlenn L McGrath
2003-11-14Keep trying to find a good header, if we exit it will cause .tar.gzGlenn L McGrath
files to compute incorrect crc and length for gzip
2003-11-05Fix tar -j supportGlenn L McGrath
Use the old fork() method of tar compression support, rather than read_bz2.... - (*uncompress)(int in, int out) seems like a more natural interface for compression code. - it might improve performance by seperating the work into one cpu bound and one io bound process. - There is extra code required to do read_[gz|bunzip] since (*uncompress)(int in, int out) will normally be used by the standalone compression applet. There have been problems with this method so if you see a "Short read" error let me know.
2003-09-12Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled.Glenn L McGrath
2003-09-12Use the typeflag to identify if its a hardlink on OLD and GNU posixGlenn L McGrath
modes, fixes a bug extracting hardlinks to symlinks.
2003-09-09If a tar entry is a regualr file ending in a '/' then its really aGlenn L McGrath
directory. From http://www.gnu.org/manual/tar/html_node/tar_123.html REGTYPE AREGTYPE These flags represent a regular file. In order to be compatible with older versions of tar, a typeflag value of AREGTYPE should be silently recognized as a regular file. New archives should be created using REGTYPE. Also, for backward compatibility, tar treats a regular file whose name ends with a slash as a directory.
2003-08-14Change hardlink handling for tar to work the same way as cpioGlenn L McGrath
2003-07-16Fixup problem unconditionally converting all hard links to symlinks.Eric Andersen
2003-06-12Handle hard links by converting them to symlinksGlenn L McGrath
2003-03-19Major coreutils update.Manuel Novoa III
2003-01-28Fix long standing bug with old gnu tar files, add a check so tar willGlenn L McGrath
complain "unknown file type" if it tries to extract an oldgnu tar file and TAR_FEATURE_OLDGNU_COMPATABILITY sint defined. Print a warning if unisupported gnu extensions are encountered.
2002-12-08Move add_to_list from libunarchive to libbb so it can be of more general use ↵Glenn L McGrath
(eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
2002-11-23Fix long filename supportGlenn L McGrath
2002-11-05Fail silently if a partial tar header is read as tar.bz2 is leaving trailing ↵Glenn L McGrath
junk (not sure why), add some missing files