aboutsummaryrefslogtreecommitdiff
path: root/tar.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move setvbuf calls from gz_open() to calling functions, setvbuf is only ↵bug12001-07-131-0/+4
| | | | | | supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt. git-svn-id: svn://busybox.net/trunk/busybox@3087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Read 20 512-byte blocks at a time (like GNU tar).kraai2001-07-101-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3050 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove a redundant call to mkdir.kraai2001-07-031-9/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comment cleanuptimr2001-06-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2877 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote mkdir (and touched lots of things in the process).kraai2001-06-211-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support tar -C, per bug #1176andersen2001-06-211-2/+12
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in (and ignore) tar -p, since we preserver permissions automatically.andersen2001-06-211-3/+5
| | | | | | | | closes bug #1185 -Erik git-svn-id: svn://busybox.net/trunk/busybox@2870 69ca8d6d-28ef-0310-b511-8ec308f3f277
* it turs out, there was a nasty tar bug where bb tar would create leading dirsandersen2001-06-201-8/+0
| | | | | | | | | | with mode 0777 in all cases due to usask issues. Thanks to Matt Kraai for noticing and spotting the culprit. This makes bb tar behave just like GNU tar once again. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2866 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed gz_open to ruturn a streambug12001-06-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to neverandersen2001-06-041-7/+2
| | | | | | | | | | change permissions on existing directories. This behavior is contrary to SUSv2 and contrary to GNU tar. Thanks to Matt Kraai for pointing this out. I should have been much more careful about accepting such a patch. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correctly remove leading slashes upon extraction (thanks to Marius Groeger).kraai2001-05-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not ever change permissions on existing directories, onlyandersen2001-05-131-2/+6
| | | | | | | | | | on directories we created while extracting a tarball. Fix based on bug report and patch from Konstantin Boldyshev <konst@linuxassembly.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@2632 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,andersen2001-05-071-0/+2
| | | | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2551 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Skip headers with empty filenames, rather than stopping.kraai2001-05-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-301-9/+3
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Logic reversal for last_char_isbug12001-04-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another nice cleanup from Larry. This adds a new last_char_is() function andandersen2001-04-261-1/+1
| | | | | | | | | uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2450 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.andersen2001-04-251-4/+0
| | | | | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* readTarFile changed from exter nto staticbug12001-04-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2318 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace getOctal with strtol( , NULL, 8)bug12001-04-111-28/+8
| | | | | | | saves 100 Bytes git-svn-id: svn://busybox.net/trunk/busybox@2311 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move unzip, gz_open, gz_close to libbbbug12001-04-111-6/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixes from Robert Kaiserbug12001-03-281-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove cruftbug12001-03-281-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2213 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove tar_unzip_init() not needed any more, uses gz_open insteadbug12001-03-281-37/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2212 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar -z, calls gz_open nowbug12001-03-281-2/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2211 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Gunzip changes broke tar -z support (woops)bug12001-03-281-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2209 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-4/+4
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-5/+5
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+2
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix wget error message and add (and use) chomp library function.kraai2001-02-011-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-20/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-1/+1
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-01-271-0/+3
| | | | | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-4/+4
| | | | 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 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
* add dpkg-deb commandbug12001-01-021-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1518 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
* 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-101-22/+74
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-53/+53
| | | | | | | 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
* 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