aboutsummaryrefslogtreecommitdiff
path: root/archival/dpkg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* dpkg: fix bug where existence check was reversedDenis Vlasenko2008-02-171-8/+4
|
* Fix xmalloc_fgets_str so that it really does NOT strip terminator.Denis Vlasenko2007-12-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | Add xmalloc_fgetline_str which does strip terminator, and use it in dpkg instead of xmalloc_fgets_str. netstat: use xmalloc_fgets_str - allows to eat strings with NULs (this fixes bug with some weird /proc/net/unix input) function old new delta xmalloc_fgets_internal - 191 +191 xmalloc_fgetline_str - 18 +18 do_info 116 120 +4 unix_do_one 451 447 -4 tcp_do_one 423 419 -4 send_tree 369 365 -4 xmalloc_fgets_str 178 15 -163 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/4 up/down: 213/-175) Total: 38 bytes text data bss dec hex filename 778445 832 7344 786621 c00bd busybox_old 778483 832 7344 786659 c00e3 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
* 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: automatically use custom link script if user provides oneDenis Vlasenko2007-08-141-4/+4
| | | | | | vinfo_msg: one user (info_msg), incorporate in it *: style fixes
* s/#ifdef CONFIG_/#if ENABLE_/gDenis Vlasenko2007-08-131-4/+4
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-2/+3
| | | | | | | | | 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-6/+5
| | | | | | | | | 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
* style fix (stray space before ';')Denis Vlasenko2007-07-211-1/+1
|
* A few more string duplicates found & eliminatedDenis Vlasenko2007-06-121-1/+1
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 679693 2700 15632 698025 aa6a9 busybox_old 679523 2700 15632 697855 aa5ff busybox_unstripped
* - kiltedknight writes: Busybox incorrectly parses a line from the status ↵Bernhard Reutner-Fischer2007-06-051-2/+2
| | | | | | file, claiming that a required package is not installed or tagged to be installed when it actually is. Closes #1221
* - fix typo in error message. Closes #1308Bernhard Reutner-Fischer2007-06-051-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* dpkg: use nitfields which are a bit closer to typical ushort.Denis Vlasenko2007-04-131-62/+65
| | | | Code size -800.
* dpkg: run_package_script() returns 0 if all ok and non-zero if failure.Denis Vlasenko2007-03-291-5/+3
| | | | | The result code was checked incorrectly in two places. (from "Kim B. Heino" <Kim.Heino@bluegiga.com>)
* dpkg: free_package(NULL) is ok, so don't test for NULL, just free.Denis Vlasenko2007-03-191-5/+2
|
* Kim B. Heino writes:Bernhard Reutner-Fischer2007-03-191-5/+3
| | | | | | | When installing a new package with dpkg dependencies are checked correctly. But when I try to update an existing package, the dependencies are checked against the old package, not against new package. Thus the new package can break dependencies.
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-8/+0
|
* dpkg: fix segfault on "dpkg -i"Denis Vlasenko2007-02-151-15/+15
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-6/+6
|
* remove useless casts (type*) xzalloc(...)Denis Vlasenko2006-12-221-2/+2
|
* dpkg: getopt32-ification etc, -100 bytesDenis Vlasenko2006-12-221-223/+170
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-3/+3
|
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-1/+1
| | | | | introduce index_in_substr_array and use it in iproute2
* rename functions to more understandable namesDenis Vlasenko2006-10-261-2/+2
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-6/+6
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* small style fixesDenis Vlasenko2006-10-121-3/+7
|
* dpkg: fix use-after-free (bug 939)Denis Vlasenko2006-09-301-7/+4
|
* dpkg: style fixes; short -> int (generated code is smaller)Denis Vlasenko2006-09-281-54/+54
|
* dpkg: reduce bss usage by ~130 kbytes (yes, kilobytes!)Denis Vlasenko2006-09-281-76/+87
| | | | | | at the cost of ~100 bytes of text. Improves friendliness to nommu systems. (Dunno whether nommu people ever use dpkg, though...)
* silly switch style fixDenis Vlasenko2006-09-271-2/+2
|
* whitespace cleanupDenis Vlasenko2006-09-171-3/+3
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-3/+3
| | | | | automatically by function itself.
* The bb_ prefixes were removed from xasprintf() and xopen() a month ago (inRob Landley2006-09-051-2/+2
| | | | svn 15767).
* dpkg: fix buffer overflow (bug 983)Denis Vlasenko2006-09-031-2/+4
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-51/+133
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-9/+0
|
* - ls: remove unused variableBernhard Reutner-Fischer2006-05-291-3/+1
| | | | | | | | - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus.
* More size shrinkage.Rob Landley2006-05-291-119/+15
|
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-6/+6
| | | | head, and change all the callers.
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley2006-05-071-1/+1
| | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
* Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)Rob Landley2006-03-011-2/+1
| | | | from before "if(x) free(x)".
* Patch from Denis Vlasenko to constify things and fix a few typos.Rob Landley2006-02-221-2/+5
|
* just whitespaceTim Riker2006-01-251-11/+11
|
* Bernhard Fischer says: use xmalloc() instead of malloc()Mike Frysinger2005-08-161-1/+1
|
* applying fix for:Paul Fox2005-07-221-0/+2
| | | | | | | 0000093: Patch for dpkg - can't handle scripts Attached patch is needed to fix dpkg's support for preinst, postinst etc script files.