aboutsummaryrefslogtreecommitdiff
path: root/archival
AgeCommit message (Collapse)Author
2000-12-04Patch to add in the -X option and fix the --exclude bug, originally byEric Andersen
Sebastien Huet, and now ported to the latest and greatest by both Arne Bernin <ab@netropol.de> and kent robotti <robotti@metconnect.com>.
2000-12-01Make tar shutup on compileEric Andersen
2000-12-01Stop using TRUE and FALSE for exit status.Matt Kraai
2000-11-30Note an error if we are unable to list/extract specified files.Matt Kraai
2000-11-18Check for archive errors even for files we aren't extracting.Matt Kraai
2000-11-14Grammer fix. Changed "longer then" to "longer than". Fix thanks to JimEric Andersen
Gleason <jimg@lineo.com>.
2000-11-08Move flush_outbuf to the file in which it is used, and by doing so fix aMatt Kraai
nasty error dealing with two different variables with the same name.
2000-11-08Fix some bugs reported by Jim Gleason <jimg@lineo.com> and others IMatt Kraai
introduced.
2000-11-07Cleanup of duplicated symbols -- found by compiling withEric Andersen
LDFLAGS += -Wl,-warn-common
2000-10-23Fix error messages.Matt Kraai
2000-10-09Fix a thinko. Patch from Justus Pendleton <justus@acm.org>Eric Andersen
2000-09-29General cleanup of comments, defines, includes, and global variables, ↵Glenn L McGrath
removed those that arent needed, grouped those remaining at the top. Re-ordered functions to the order they are called. Removed static crc table, it now generates the table once for itself. Results in source reduced by 40%, so it should be a lot easier to work on in the future, binary size only reduced by under 2KB though.
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
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