aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - typo: s/sucess/success/gBernhard Reutner-Fischer2005-12-121-1/+1
| | | | What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look..
* reduce 3 warning if compile with -W"Vladimir N. Oleynik"2005-12-061-2/+5
|
* Add --no-same-owner and --no-same-permissions options to tar.Rob Landley2005-10-271-35/+52
|
* The fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,Rob Landley2005-10-161-2/+2
| | | | | | which was apparently never tested. That meant that there always had to be at least one unparsed argument left over, which is not the case for tar.
* Whitespace and curly bracket cleanup (our tabstop is 4 in busybox),Rob Landley2005-10-161-188/+146
| | | | and switch more stuff from CONFIG to ENABLE.
* llist must initialize, add loses ifdef, small indent correction"Vladimir N. Oleynik"2005-10-151-30/+33
|
* Add --exclude option (to make uClibc-0.9.28 headers install using busybox tar).Rob Landley2005-10-151-20/+24
| | | | | | | | I have no idea how to apply bb_getopt_complementally to a --longopt that has no short option. The documentation from vodz has a bad case of babelfish poisoning, and I can't understand it. It sort of seems to suggest there is a way, but what it is I have no idea. So I used \n as the short option, which is fairly unlikely to be used for something else. :)
* - new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"2005-10-141-6/+4
| | | | | - new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
* new featured bb_opt_complementally, correct argc checking"Vladimir N. Oleynik"2005-10-121-14/+6
|
* - use complementally '!' to '?' - 'ask' is best 'free' char for this."Vladimir N. Oleynik"2005-10-111-1/+1
| | | | | - more long opt compatibility, can set flag for long opt struct now - more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets.
* change interface to bb_xasprintf() - more perfect for me."Vladimir N. Oleynik"2005-09-291-6/+2
| | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-2/+2
| | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-5/+1
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Fix for bug 383: attempting to "tar c /" would error out because strippingRob Landley2005-09-011-1/+1
| | | | trailing / turns that into an empty string.
* Dirk Clemens pointed out how easy it is to support bzip2 compression, since weRob Landley2005-08-301-18/+15
| | | | shell out to an external program to handle gzip anyway...
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger2005-05-111-1/+1
| | | | (BB_GETOPT_ERROR)
* Tito writes:Eric Andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito
* BusyBox has no business hard coding the number of major and minor bits for aEric Andersen2004-07-261-9/+5
| | | | | | | | | dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik
* Fixup -T (--files-from) option, works for non-directories nowGlenn L McGrath2004-07-211-3/+6
|
* Steve Grubb writes:Eric Andersen2004-05-051-2/+2
| | | | | | | | | | | Hello, I found and patched 2 more bugs. The first is a misplaced semi-colon. The second one is a buffer overflow. I doubt the buffer overflow is triggered in real life. But you never know what those wily hackers are up to. Thanks, Steve Grubb
* Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath2004-04-251-1/+1
|
* Larry Doolittle writes:Eric Andersen2004-04-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-2/+2
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-11/+11
|
* Add the -h, --dereference option for archive creation.Glenn L McGrath2004-01-251-5/+8
|
* Isolate code better for unused options, config option to enable longGlenn L McGrath2003-12-261-54/+128
| | | | options, add some conditions to the tar tests in testsuite.
* As we no longer use function pointers for read in common archiving codeGlenn L McGrath2003-11-211-14/+3
| | | | | | | archive_xread can be replaced with bb_full_read, and archive_copy_file with bb_copyfd* bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, they share a common backend.
* Fix tar-handles-nested-exclude testcaseGlenn L McGrath2003-11-201-0/+5
|
* Check at least one context is specifiedGlenn L McGrath2003-11-201-0/+3
|
* Check there are files to add the archive before removing a specifiedGlenn L McGrath2003-11-201-5/+4
| | | | tar file.
* tar -Z, uncompress supportGlenn L McGrath2003-11-181-1/+28
|
* Make unlink old files default behaviour and add a new option -k toGlenn L McGrath2003-11-181-19/+23
| | | | prevent overwritting existing files
* Catch unsupported featuresGlenn L McGrath2003-11-141-7/+15
|
* Fix -C option when creating tar files.Glenn L McGrath2003-10-021-30/+37
| | | | | | | | Need to chdir after the tar file is opened, so make common tar filename parsing and send the file descriptor rather than filename to writeTarFile. Modify the verboseFlag operation to determine wether to display on stderr or stdout at display time, simpler than doing it in tar_main.
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+1
|
* Be certain to not abort prematurely when reading stuff from pipes.Eric Andersen2003-07-051-1/+1
|
* As noted by Thomas Eckert:Eric Andersen2003-07-051-2/+9
| | | | | | | | | | | | | | | | bb-tar "cjf" does not create a valid tbz2-archive -- if fact the result is a plain tar-file (no compression) -- but does not warn about the unrecognized parameter combination "cj" (bb does not have bzip2-compression yet, right?). to fix this I have added an error message stating this does not work. He also reported cosmetic: versose "-v" does not show any output when used with "create" which I have now fixed as well. -Erik
* Glenn McGrath (bug1) isaway from my email till the 17th, but caught me on IRC.Eric Andersen2003-07-051-1/+1
| | | | | He took a look into the recent reports of tar problems, and found an obvious typo in last_patch91 from vodz which converted tar to use bb_getopt_ulflags.
* last_patch91 from vodz to convert tar to use bb_getopt_ulflagsEric Andersen2003-06-261-60/+56
|
* Handle -O preceding -x.Matt Kraai2003-05-181-1/+3
|
* Always preserve dateGlenn L McGrath2003-04-261-2/+1
|
* unlink() an existing file, before opening it, simply truncating canGlenn L McGrath2003-04-211-1/+2
| | | | cause nasty problems if overwriting glibc, spotted by waldi.
* Major coreutils update.Manuel Novoa III2003-03-191-28/+27
|
* Move add_to_list from libunarchive to libbb so it can be of more general use ↵Glenn L McGrath2002-12-081-3/+3
| | | | (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
* Check that one and only one of the [cxt] options is givenGlenn L McGrath2002-11-271-6/+14
|
* Use vfork instead of fork, some more cleanup from Vladimir N. OleynikGlenn L McGrath2002-11-251-31/+31
|
* Remove #defines around get_header_ptr, we allways need it.Glenn L McGrath2002-11-161-2/+0
|
* Dont chdir untill after we open the archiveGlenn L McGrath2002-11-151-4/+5
|
* Minor cleanupsGlenn L McGrath2002-11-131-14/+2
|
* Fix reading from stdin (me), Fix tar segfault when no arguments specified ↵Glenn L McGrath2002-11-081-5/+5
| | | | (Geoffrey Lee)