aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-232-28/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use getopt (or getopt_long).kraai2001-01-221-81/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1634 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed listed files to extract to be more like GNU. Reported by Deon George.kraai2001-01-221-29/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Close files before exitbug12001-01-201-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1623 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Close unused pipe handle before fork (for tar -z).bug12001-01-201-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1618 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ownership of extracted directories.kraai2001-01-131-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1562 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Behave like GNU tar when matching excluded files.kraai2001-01-031-42/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1528 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix warning for unused variablebug12001-01-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* really add dpkg-deb.c this timebug12001-01-021-0/+159
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1519 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add dpkg-deb commandbug12001-01-022-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1518 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use busybox error handling functions wherever possible.kraai2000-12-221-18/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be sure to read from the given path, not the one used in the header.kraai2000-12-191-10/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1474 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar handling of absolute paths and excluded directories.kraai2000-12-191-34/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1470 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-14/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite, fix a bug with multiple long filenames, simplify structure, remove ↵bug12000-12-151-314/+142
| | | | | | cruft, make code conform closer to style guide, saves 350 Bytes. git-svn-id: svn://busybox.net/trunk/busybox@1461 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add GNU compatibile gzip -dandersen2000-12-131-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1448 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai:andersen2000-12-131-25/+26
| | | | | | | | | | The following patch makes the -X option to tar behave like GNU, which reads one file per line. It also prevents the last file from being appended to the list twice (though that has no noticeable impact). git-svn-id: svn://busybox.net/trunk/busybox@1444 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai -- a better way to NULL terminate strings for theandersen2000-12-131-2/+0
| | | | | | | | my_* passwd and group routines. I should have thought of doing it this way... git-svn-id: svn://busybox.net/trunk/busybox@1443 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support for tar -z option for uncompressing onlybug12000-12-102-24/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Introduce new function gunzip_init()bug12000-12-101-32/+35
| | | | | | | gunzip_init() will make it easier to use gunzip from other bb functions. git-svn-id: svn://busybox.net/trunk/busybox@1414 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-074-85/+85
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jim Gleason <jimg@lineo.com> to fix tar so it no longer breaks hardandersen2000-12-071-3/+94
| | | | | | | links, and no longer segfault in a certain wierd case. git-svn-id: svn://busybox.net/trunk/busybox@1392 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed the comments to match the code and renamed the function to a (hopefully)markw2000-12-051-2/+2
| | | | | | | more descriptive name, and as per the style guide. git-svn-id: svn://busybox.net/trunk/busybox@1379 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch to add in the -X option and fix the --exclude bug, originally byandersen2000-12-041-1/+28
| | | | | | | | Sebastien Huet, and now ported to the latest and greatest by both Arne Bernin <ab@netropol.de> and kent robotti <robotti@metconnect.com>. git-svn-id: svn://busybox.net/trunk/busybox@1373 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make tar shutup on compileandersen2000-12-011-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-014-6/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Note an error if we are unable to list/extract specified files.kraai2000-11-301-2/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1355 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check for archive errors even for files we aren't extracting.kraai2000-11-181-4/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1336 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Grammer fix. Changed "longer then" to "longer than". Fix thanks to Jimandersen2000-11-141-4/+4
| | | | | | | Gleason <jimg@lineo.com>. git-svn-id: svn://busybox.net/trunk/busybox@1300 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move flush_outbuf to the file in which it is used, and by doing so fix akraai2000-11-082-15/+14
| | | | | | | nasty error dealing with two different variables with the same name. git-svn-id: svn://busybox.net/trunk/busybox@1294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some bugs reported by Jim Gleason <jimg@lineo.com> and others Ikraai2000-11-081-24/+15
| | | | | | | introduced. git-svn-id: svn://busybox.net/trunk/busybox@1293 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup of duplicated symbols -- found by compiling withandersen2000-11-072-50/+35
| | | | | | | LDFLAGS += -Wl,-warn-common git-svn-id: svn://busybox.net/trunk/busybox@1292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix error messages.kraai2000-10-232-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1222 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a thinko. Patch from Justus Pendleton <justus@acm.org>andersen2000-10-091-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1173 69ca8d6d-28ef-0310-b511-8ec308f3f277
* General cleanup of comments, defines, includes, and global variables, ↵bug12000-09-291-1451/+632
| | | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@1141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-254-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug#1043 -- hanlde long filenames and links (in this case, by complainingandersen2000-09-241-3/+34
| | | | | | | | that thay exist and skipping such files when extracting and when archiving. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1107 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix an obscure option parsing bug.andersen2000-09-231-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1106 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up error messages.kraai2000-09-221-11/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1094 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reverted my conversion of tar to getopt to ensure tar canandersen2000-09-191-26/+40
| | | | | | | | | handle traditional semantics (i.e. 'tar -xvf -' or 'tar xvf' now both work). -Erik git-svn-id: svn://busybox.net/trunk/busybox@1073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove definition of basename.bug12000-09-181-3/+0
| | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@1065 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updated stdin/stdout treatment to match that of gnu tar.kraai2000-09-151-9/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganize listing code.kraai2000-09-151-46/+47
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow non-verbose listing to work.kraai2000-09-151-5/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1060 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-7/+7
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix .deb unpack and experimental TAR supportbug12000-09-111-87/+178
| | | | | | | | | | | | 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" git-svn-id: svn://busybox.net/trunk/busybox@1034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify a few little things, and merge in a patch fromandersen2000-09-111-11/+11
| | | | | | | | | robotti@metconnect.com so that 'ar -xv' and 'ar -x -v' both work. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1032 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove some printf statements i forgot aboutbug12000-09-091-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implemented new ar functionality unique to busybox ar (i think), the -Rbug12000-09-091-19/+15
| | | | | | | | | | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@1021 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed getopt so that options can be grouped together, the sourcebug12000-09-091-14/+12
| | | | | | | | | archive is now assumed to be the first non parameter. This is how GNU ar behaves. git-svn-id: svn://busybox.net/trunk/busybox@1020 69ca8d6d-28ef-0310-b511-8ec308f3f277