aboutsummaryrefslogtreecommitdiff
path: root/archival
AgeCommit message (Collapse)Author
2000-09-24Fix bug#1043 -- hanlde long filenames and links (in this case, by complainingEric Andersen
that thay exist and skipping such files when extracting and when archiving. -Erik
2000-09-23Fix an obscure option parsing bug.Eric Andersen
2000-09-22Clean up error messages.Matt Kraai
2000-09-19Reverted my conversion of tar to getopt to ensure tar canEric Andersen
handle traditional semantics (i.e. 'tar -xvf -' or 'tar xvf' now both work). -Erik
2000-09-18Remove definition of basename.Glenn L McGrath
It was defined out so that it would never be seen, and if it was ever seen it wasnt used for anything. It also stops gunzip compiling under the Hurd.
2000-09-15Updated stdin/stdout treatment to match that of gnu tar.Matt Kraai
2000-09-15Reorganize listing code.Matt Kraai
2000-09-15Allow non-verbose listing to work.Matt Kraai
2000-09-13Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai
segfaulting or handling errors the same way themselves.
2000-09-11Fix .deb unpack and experimental TAR supportGlenn L McGrath
The previous ar.c fialed to recognise one record in .debs Experimental tar support, this is currently *very* cheap because ar and tar are functionally similar. It will need lots of testing so by default tar support code is defined out. To test uncomment the line "#define BB_AR_EXPERIMENTAL_UNTAR"
2000-09-11Simplify a few little things, and merge in a patch fromEric Andersen
robotti@metconnect.com so that 'ar -xv' and 'ar -x -v' both work. -Erik
2000-09-09remove some printf statements i forgot aboutGlenn L McGrath
2000-09-09Implemented new ar functionality unique to busybox ar (i think), the -RGlenn L McGrath
option enable a Recursive extraction (or listing) to take place. i.e. if any files being extracted are themselves ar archives then busybox ar will extract their contents as well. e.g. take bar.deb and do (with GNU ar) ar -q foo.deb b.ar then with busybox ar can do ar -x b.ar data.tar.gz -R isnt used for anything in GNU ar so i think it should be ok, could have used long options This functionality will become (more) usufull with tar, gz support.
2000-09-09Changed getopt so that options can be grouped together, the sourceGlenn L McGrath
archive is now assumed to be the first non parameter. This is how GNU ar behaves.
2000-09-09Fix permisionsGlenn L McGrath
2000-09-09Now supports GNU style long filenames.Glenn L McGrath
If no filenames are specifed to be (extracted/listed) it will act on all files in the archive (i dont think the old version did this) Code is structured to better support upcoming recursive extraction functionality. The old code was a bit strange in places, dont know what i was thinking.
2000-09-04Allow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fixMatt Kraai
handling of --exclude option.
2000-09-04Allow selective extraction and listing of files. And fix an uncheckedMatt Kraai
return value of realloc (with xrealloc).
2000-09-01Fixed a stupid thinko preventing zcat from doing its job, thanksEric Andersen
to Torbj�rn Axelsson <torax@cendio.se> for the fix. -Erik
2000-09-01Argh. I *will* compile before checking in.Matt Kraai
2000-09-01Don't unlink files if we are extracting to stdout.Matt Kraai
2000-09-01Correct the stdin/stdout behavior when no args are provided.Eric Andersen
-Erik
2000-09-01Sigh. Seems I screwed up last time. This fixed detectingEric Andersen
when on a console or not, and make default behavior compatible with GNU gzip... -Erik
2000-08-25ar.c now uses a linked list to process headers, uses getopt, new internal ↵Glenn L McGrath
function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions. moved copySubFile from ar.c to utilities.c modified dd.c to use fullWrite modified copyFile in utilities.c to use copySubFile
2000-08-11Fix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>Eric Andersen
-Erik
2000-08-10Some #include updates.Eric Andersen
-Erik
2000-08-02Merge in two patches from Dave Cinege:Eric Andersen
the first is a cleanup of tar --exclude the second changes mount so mtab works more as it should, and also allows mount to use the traditional short form (i.e. 'mount / -o remount,rw' now works. While inside tar, I changed it to use getopt... -Erik
2000-07-28Fix from Robert Kaiser for stdin behavior.Eric Andersen
-Erik
2000-07-21Fixed stdin/stdout paths so things likeEric Andersen
tar cvf - /etc/* | gzip -c9 >test.tgz will now work. Fix thanks to Dave Cinege <dcinege@psychosis.com> with some adjustments by me to be mroe GNU-like. -Erik
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-12Always report the applet name when doing error reporting.Matt Kraai
2000-07-12Use global applet_name instead of local versions.Matt Kraai
2000-07-06* Fixed tar creation support when reading from stdin ('tar -cf - . ')Eric Andersen
thanks to Daniel Quinlan <quinlan@transmeta.com> -Erik
2000-07-06a few minor cleanups.Eric Andersen
-Erik
2000-07-05Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu> toEric Andersen
simplify ar.c and make it more readable. -Erik
2000-06-28* Fixed a _horrible_ bug where 'tar -tvf' could unlinkEric Andersen
local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de> * Added support for "sh -c command args...", also thanks to Marius Groeger <mgroeger@sysgo.de> -Erik
2000-06-26readlink(2) does not NULL terminate the buffer it reads in, but tar expected itEric Andersen
to do so. This caused symlinks stored in tarballs to likely have trailing crap in the stored symlink named. Oops. -Erik
2000-06-21'tar --help' wasn't working. Fixed it.Eric Andersen
-Erik
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-06-16Update to ar.c from Glenn McGrath. His comments follow:Eric Andersen
------------------------------ the attached diff applies to the ar.c i originally submitted Changes Preserve dates now works. Extracted files are set to the uid, gid and mode specified in the archive. Checks for valid end of header marker. Correctly unpacks newer debian files. (has a '\n' character between entries) Added more comments. Cleaned up code. Added a last modified date to help keep track of versions. TODO Common functionality in ar.c are in tar.c should be merged, in particular getOctal and extractSubFile. Should all functions that are used by multiple file go in utilities.c ?
2000-06-09* Fixed a small bug that could cause tar to emit warning messagesEric Andersen
and not extract the first file in a directory in some cases of nested directories. Thanks to Kevin Traas <kevin@netmaster.com> for helping track this one down. -Erik
2000-06-02A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
2000-05-30Fixed tar option parsing segfault, and make "tar xv" and "tar -xv"Eric Andersen
both work (i.e. it works with or w/o the "-"). -Erik
2000-05-20First pass at fixing tar segfault, and more portability updates.Erik Andersen
-Erik
2000-05-19More libc portability updates, add in the website (which has not beenErik Andersen
archived previously). Wrote 'which' during the meeting today. -Erik
2000-05-12Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
2000-05-10* cp -fa now works as expected for symlinks (it didn't before)Erik Andersen
* zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik
2000-04-28Fix tarball creation. In an attempt to accomodate the whinersErik Andersen
that wanted "tar cf foo.tar foo" (i.e. no "-" before options) I broke creation of tarballs. Now fixed. -Erik
2000-04-28Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen
compatability. -Erik