aboutsummaryrefslogtreecommitdiff
path: root/tar.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-011-3/+9
| | | | 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
* 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
* 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
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -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
* 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
* 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
* Allow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fixkraai2000-09-041-22/+19
| | | | | | | handling of --exclude option. git-svn-id: svn://busybox.net/trunk/busybox@1007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow selective extraction and listing of files. And fix an uncheckedkraai2000-09-041-4/+27
| | | | | | | return value of realloc (with xrealloc). git-svn-id: svn://busybox.net/trunk/busybox@1004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Argh. I *will* compile before checking in.kraai2000-09-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@993 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't unlink files if we are extracting to stdout.kraai2000-09-011-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@992 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Merge in two patches from Dave Cinege:andersen2000-08-021-54/+40
| | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@937 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Robert Kaiser for stdin behavior.andersen2000-07-281-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@916 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-31/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-121-18/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fixed tar creation support when reading from stdin ('tar -cf - . ')andersen2000-07-061-0/+2
| | | | | | | | thanks to Daniel Quinlan <quinlan@transmeta.com> -Erik git-svn-id: svn://busybox.net/trunk/busybox@760 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fixed a _horrible_ bug where 'tar -tvf' could unlinkandersen2000-06-281-1/+2
| | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* readlink(2) does not NULL terminate the buffer it reads in, but tar expected itandersen2000-06-261-1/+4
| | | | | | | | | to do so. This caused symlinks stored in tarballs to likely have trailing crap in the stored symlink named. Oops. -Erik git-svn-id: svn://busybox.net/trunk/busybox@702 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 'tar --help' wasn't working. Fixed it.andersen2000-06-211-0/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fixed a small bug that could cause tar to emit warning messagesandersen2000-06-091-2/+5
| | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed tar option parsing segfault, and make "tar xv" and "tar -xv"andersen2000-05-301-3/+4
| | | | | | | | both work (i.e. it works with or w/o the "-"). -Erik git-svn-id: svn://busybox.net/trunk/busybox@580 69ca8d6d-28ef-0310-b511-8ec308f3f277