summaryrefslogtreecommitdiff
path: root/archival/tar.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tar: optional autodetection of gz/bz2 compressed tarballs.Denis Vlasenko2008-02-191-9/+26
| | | | | +130 bytes. Closes bug 992.
* *: more readable handling of pipe fds. No code changes.Denis Vlasenko2008-02-161-4/+4
|
* random s/short/int/Denis Vlasenko2008-02-161-3/+6
| | | | | | | | | add_cmd 1189 1190 +1 xconnect_ftpdata 118 117 -1 data_align 86 84 -2 process_files 2101 2096 -5 forkexec 1345 1334 -11
* tar: move FNM_LEADING_DIR #define to tar.c - no other users.Denis Vlasenko2008-02-131-0/+5
| | | | | Closes bug 1332.
* libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko2008-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | *: use more approproate (shorter) versions of wait() function old new delta safe_waitpid - 48 +48 wait_any_nohang - 17 +17 send_tree 365 369 +4 processorstop 432 435 +3 text_yank 110 108 -2 make_human_readable_str 202 200 -2 crond_main 1368 1366 -2 handle_sigchld 49 43 -6 reapchild 166 159 -7 custom 260 250 -10 checkscript 191 177 -14 wait_nohang 17 - -17 wait_pid 43 - -43 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103) Total: -31 bytes
* add comment clarifying busybox's use of non-standard tar headerPaul Fox2007-11-171-1/+4
|
* tar: fix a case where glibc detects bogus buffer overrunDenis Vlasenko2007-11-161-2/+3
| | | | | which is not really there!
* open_transformer: do not duplicate "<program> -cf -"Denis Vlasenko2007-11-121-1/+1
| | | | | | | text data bss dec hex filename 677858 738 7236 685832 a7708 busybox_old 677804 738 7236 685778 a76d2 busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* tar: add a comment about previous subtle fixDenis Vlasenko2007-09-241-6/+7
|
* tar: strip leading '/' BEFORE memorizing hardlink's nameDenis Vlasenko2007-09-241-20/+21
| | | | | | | | function old new delta writeFileToTarball 1362 1352 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10) Total: -10 bytes
* update Glenn McGrath's email addressDenis Vlasenko2007-09-211-1/+1
|
* style fix, no code changesDenis Vlasenko2007-09-091-1/+1
|
* tar + gzip/bzip2/etc: support NOMMU machines (by Alex Landau ↵Denis Vlasenko2007-09-051-1/+1
| | | | <landau_alex@yahoo.com>)
* tar: conditionally don't wait for vforked child to exec, as it alwaysDenis Vlasenko2007-09-041-35/+47
| | | | | | | | | | | | | | | works right on Linux, and anyway mayresult only on less-than-clear error message only, it will not cause tar to misbehave. function old new delta open_transformer 98 80 -18 writeTarFile 714 547 -167 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-185) Total: -185 bytes text data bss dec hex filename 770651 1051 10764 782466 bf082 busybox_old 770463 1051 10764 782278 befc6 busybox_unstripped
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-1/+1
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* rework long option handling. saves ~1.2kDenis Vlasenko2007-07-231-23/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta tar_longopts - 222 +222 static.udhcpc_longopts - 192 +192 start_stop_daemon_longopts - 150 +150 getopt32 1045 1185 +140 static.wget_longopts - 111 +111 static.od_longopts - 105 +105 getopt_longopts - 96 +96 install_longopts - 67 +67 ipcalc_longopts - 63 +63 static.hwclock_longopts - 54 +54 ftpgetput_longopts - 52 +52 static.dumpleases_longopts - 32 +32 env_longopts - 31 +31 runparts_longopts - 30 +30 mv_longopts - 24 +24 mkdir_longopts - 19 +19 find_pair 164 180 +16 bb_null_long_options - 16 +16 setconsole_longopts - 10 +10 display_speed 91 98 +7 collect_blk 467 474 +7 show_color 4 1 -3 ls_main 913 904 -9 bb_default_long_options 16 - -16 ls_color_opt 32 10 -22 setconsole_long_options 32 - -32 arith 2077 2030 -47 mv_long_options 48 - -48 mkdir_long_options 48 - -48 env_long_options 48 - -48 static.options 248 184 -64 runparts_long_options 80 - -80 ftpgetput_long_options 96 - -96 static.hwclock_long_options 112 - -112 install_long_options 112 - -112 static.long_options 144 - -144 static.wget_long_options 160 - -160 longopts 160 - -160 static.arg_options 304 - -304 tar_long_options 320 - -320 long_options 384 - -384 ------------------------------------------------------------------------------ (add/remove: 17/15 grow/shrink: 4/5 up/down: 1444/-2209) Total: -765 bytes text data bss dec hex filename 782618 1328 11900 795846 c24c6 busybox_old 781354 1328 11900 794582 c1fd6 busybox_unstripped
* random shrinkage of statics, -60 bytes savedDenis Vlasenko2007-06-211-3/+3
|
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-4/+6
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* xpipe: introduce (saves ~170 bytes)Denis Vlasenko2007-05-261-2/+2
| | | | | udhcp/signalpipe.c: use pipe instead of socketpair.
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+1
|
* bb_full_fd_action: remove potential xmalloc from NOFORK pathDenis Vlasenko2007-04-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-04-081-2/+1
| | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
* find: fix handling of -pruneDenis Vlasenko2007-04-081-2/+2
| | | | recursive_actions: uppercase flag constants
* - fold recurse, depthFirst and dereference params into one param flags.Bernhard Reutner-Fischer2007-03-291-2/+3
| | | | Minor size improvement (-16b for size, -24b according to bloat-o-meter).
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-1/+0
|
* remove f wordsDenis Vlasenko2007-03-041-1/+1
|
* tar: handle tarfiles with (broken) checksums a-la Sun.Denis Vlasenko2007-03-031-0/+3
|
* sort: fix multiple -k (was ignoring all except last)Denis Vlasenko2007-02-171-1/+1
|
* syslogd: fix "readpath bug" by using readlink insteadDenis Vlasenko2007-02-111-2/+2
| | | | libbb: rename xgetcwd and xreadlink
* EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko2007-02-061-1/+1
|
* fix tar t segfault (closes 1183)Denis Vlasenko2007-02-041-18/+25
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #1Denis Vlasenko2007-01-291-1/+1
|
* accumulated post-1.4.0 fixesDenis Vlasenko2007-01-241-14/+14
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-1/+1
|
* tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko2006-12-221-15/+17
| | | | (we have bb_copyfd_exact_size now for that kind of usage)
* tar: report error if child dies while writing out the end of tarballDenis Vlasenko2006-12-171-8/+39
| | | | (e.g. out of disk space).
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* - remove functions marked as LEGACY in SUSv3 and use their modern counterparts.Bernhard Reutner-Fischer2006-12-121-5/+5
|
* fix support for globally disabling --long-options.Denis Vlasenko2006-11-291-4/+3
| | | | (disabling them saves ~4K on fully configured bbox)
* tar: fix misplaced --exclude long option definitionDenis Vlasenko2006-11-271-4/+9
|
* small fixes:Denis Vlasenko2006-11-261-1/+1
| | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
* tar: correctly skip (and warn about) pax headers.Denis Vlasenko2006-11-261-1/+1
| | | | | plug memory leak. save 50 bytes. Wooohooo! we finally can unpack kernel tarballs!
* tar: add support for FEATURE_TAR_GNU_EXTENSIONS so than we can saveDenis Vlasenko2006-11-251-25/+98
| | | | | | | long names now. We were able to read such tars, but not create. +275 bytes. Without FEATURE_TAR_GNU_EXTENSIONS: -25 bytes. We still cannot unpack Linux kernels, but not for long ;)
* tar: small fix and small optimizationDenis Vlasenko2006-11-251-10/+6
|
* tar: abort if tarring up file larger that 64GbDenis Vlasenko2006-11-251-42/+35
| | | | (otherwise we will produce garbled tarfile)