aboutsummaryrefslogtreecommitdiff
path: root/archival
AgeCommit message (Collapse)Author
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
2000-04-21More Doc updates. cmdedit and more termio fixes.Erik Andersen
2000-04-19make ps accept (and ignore) all options (--help works of course).Erik Andersen
tar now works with or without the leading "-" on the options. -Erik
2000-04-15More documentation updates, and minor fixes to make things syncErik Andersen
up with the docs. -Erik
2000-04-14Fix a tar bug: tar removed leading '/'s for symlink targets.Erik Andersen
Fix a syslogd bug: Only the first sizeof(buffer) was read from the /dev/log socket, causing (for most cases) only every other log item to be logged. -Erik
2000-04-13Upates to include copyright 2000 to everythingErik Andersen
-Erik
2000-04-09This makes tar work perfectly, and adds in "--exclude" as an optionErik Andersen
-Erik
2000-04-08Fix tar checksum calculation bug.Erik Andersen
-Erik
2000-04-08Latest and greatestErik Andersen
-Erik
2000-04-07Slightly better fringe case handling and GNU tar like error messages.Erik Andersen
-Erik
2000-04-07Patch to make killall actually kill all PIDs with the specified name,Erik Andersen
rather then busylooping trying to kill the first one until it dies. Should be more efficient now, and will only send one signal to each specified process. -Erik
2000-04-05Tar now works perfectly. It behaves much better now then itErik Andersen
used to. Only thing left to do is add in exclude (-X) option. -Erik