fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Ron YorstonRon Yorston
e5213cee383vi: failure to open file is not an error when initialising bufferCommit 32afd3a introduced these regressions on the master branch: Starting vi with no filename on the command line gives the status message "'(null)' Bad address" instead of "- No file 1/1 100%". Starting vi with a non-existent file on the command line gives the status message "'new.txt' No such file or directory" instead of "- new.txt 1/1 100%" Signed-off-by: Ron Yorston <rmy@tigress.co.uk>...
Denys VlasenkoDenys Vlasenko
08364dab752depmod: fix recent breakage in modules.dep generationSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tito RagusaTito Ragusa
e5cae08f123libpwdgrp: line counting in error meesages is broken, remove itSigned-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
René RhéaumeRené Rhéaume
e76957708b6swaponoff: add support for -eSigned-off-by: René Rhéaume <rene.rheaume@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
1ec49732e2bmpstat: code shrinkfunction old new delta get_uptime 134 129 -5 get_irqs_from_stat 110 103 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Guillermo RodriguezGuillermo Rodriguez
75a1403f266free: handle "cached" value toofunction old new delta free_main 356 481 +125 Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
da9212667c9libbb: code shrink by factoring out common update_utmp_DEAD_PROCESSfunction old new delta update_utmp_DEAD_PROCESS - 17 +17 telnetd_main 1685 1674 -11 mark_terminated 56 45 -11 handle_sigchld 74 63 -11 Signed-off-by: Denys Vlasenko <...
Denys VlasenkoDenys Vlasenko
08b90a9d10fdeleting unused ntpd_simple.cSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
c5d4a04e450libpwdgrp: fixes suggested by Tito, comment tweaksfunction old new delta bb_internal_getpwent_r 100 121 +21 parse_common 202 203 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Adam TkacAdam Tkac
4bf88d9094fntpd: relicense ntpd applet to ISC-style licenseOpenNTPd is licensed under ISC-style license so it's good idea to keep ntpd applet under same license to avoid mess, instead of having our changes to be under GPL. Names of original code's authors are added. Signed-off-by: Adam Tkac <vonsch@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
db4d1051ca5libpwdgrp: another code shrinkfunction old new delta massage_data_for_r_func - 110 +110 bb_internal_getpwent_r 173 100 -73 getXXnam_r 176 95 -81 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shri...
Denys VlasenkoDenys Vlasenko
5acf1346b46libpwdgrp: code shrinkfunction old new delta parse_common 206 205 -1 getgrouplist_internal 229 225 -4 bb_internal_getpwent_r 182 173 -9 getXXnam 232 222 -10 getXXnam_r ...
Denys VlasenkoDenys Vlasenko
12fc8695605libpwdgrp: getgrXXX: empty string is not a member name, do not store itSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
402451aa195fix a SEGV in previous commitSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
f9936676bb7libpwdgrp: fix counting of commas in group listSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
134c53098bdlibpwdgrp: store getXXnam result in a single malloc blockThis saves a bit of memory but more importantly, allows to create xmalloc_getpwnam() API where result can be deleted simply using free(). function old new delta getXXnam 134 173 +39 parse_common 188 212 +24 convert_to_struct ...
Denys VlasenkoDenys Vlasenko
20c0a16334elibpwdgrp: make db->def[] one byte shorterIn the future I will need another uint8_t, want to fit it w/o using another word on 32 bits. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
5e62a3d0166libpwdgrp: use a better estimate of max struct sizePrevious code's trick with bitwise OR was giving this on 32-bit x86: sizeof(struct passwd):28 sizeof(struct group):16 sizeof(struct spwd):36 sizeof(struct_result):60 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
9dca6acaac3libpwdgrp: reinstate Tito's optional atexit freeingSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
8d547aca75flibpwdgrp: fix a memory leak in getXXnam (we did not save address of string buf)function old new delta convert_to_struct 261 269 +8 const_sp_db 20 24 +4 const_pw_db 20 24 +4 const_gr_db 20 24 +4 tokenize ...
Denys VlasenkoDenys Vlasenko
31d6734457blibpwdgrp: tweak comments, replace one xmalloc with xzallocSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
908b6e5dfdblibpwdgrp: use FAST_FUNC to make "matching ABI" optimization more likely to succeedSee bb_internal_get*nam_r size reduction: function old new delta bb_internal_getpwent_r 167 176 +9 getXXnam_r 204 206 +2 sulogin_main 326 325 -1 su_main 471 4...
Tito RagusaTito Ragusa
1da09cfacf1libpwdgrp: rewritten to use malloced implementationThis removed buffer size limitations. function old new delta convert_to_struct - 269 +269 getXXnam_r - 204 +204 parse_common - 185 +185 getXXnam - 164 ...
Denys VlasenkoDenys Vlasenko
78854520ebemodprobe: revert checking for /, stop doing basename() on modprobe argsfunction old new delta process_module 726 719 -7 filename2modname 81 67 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21) Total: -21 bytes Signed-off-by: Deny...
Bartosz GolaszewskiBartosz Golaszewski
6c19d35f689Makefile: fix cscope targetThis target doesn't work with current directory layout. Just make cscope index all .c and .h files. While we're at it: add cscope output files to .gitignore. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
c76236fd7d9ash: fix a SEGV in ${#1}function old new delta varvalue 760 805 +45 evalvar 648 603 -45 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
John SchroederJohn Schroeder
8074a6ca4dcudhcpd: account for script delay in leasePrevent nasty surprises if script runs longer than lease time / 2. Signed-off-by: John Schroeder <jschroed@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b9965077e51Start 1.24.0 development cycleSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
6968e081230Bump version to 1.23.0Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
ca9c4653a95libbb: add sanity check in bb_arg_max()Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
11775edbfc2randomconfig fixesSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Peter KümmelPeter Kümmel
a6588fa1023Make it possible to override LOGIN_FAIL_DELAY in CONFIG_EXTRA_CFLAGSSigned-off-by: Peter Kümmel <syntheticpp@gmx.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
28634924f09udhcpc: account for script run timeBased on the following user report: I ran into an issue where I was seeing a long delay in the scripts called in udhcp_run_script. I was using an old version of OpenWrt (kamikaze) and a satellite modem. An NTP script was being called and the modem would sometimes take a long time to respond to the DNS lookup when it was offline. This delay started affecting my lease time. The lease that I wou...
Baruch SiachBaruch Siach
ad0d009e0c1nanddump: don't show --bb in usage when disabledThe --bb options now depends on LONG_OPTS. Omit mentions of --bb from usage text when LONG_OPTS is disabled. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Baruch SiachBaruch Siach
e835afadfe8nandwrite: fix build when long options are disabledThe Required_argument macro is only defined when long options are enabled. Fixes the following build error: miscutils/nandwrite.c: In function 'nandwrite_main': miscutils/nandwrite.c:120:10: error: expected ',' or ';' before 'Required_argument' Reported-by: Christian Kästner <kaestner at cs.cmu.edu> Signed-off-by: Baruch Siach <baruch at tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@go...
Ron YorstonRon Yorston
20cd31a2d7clineedit: don't block when looking for escape sequence in vi-modeIn vi-mode lineedit tries to detect some escape sequences. After the ESC it reads the next character to check for certain values. This read should have a timeout or a user-entered ESC to switch to command mode doesn't properly handle the next character. Signed-off-by: Ron Yorston <rmy@tigress.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
acb8be72176tar: fix "tar -cJ" ignoring -J option. closes 7706function old new delta tar_main 895 938 +43 vfork_compressor 206 191 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 43/-15) Total: 28 bytes Signed-off-by: Denys...
Denys VlasenkoDenys Vlasenko
d598a8d4e65lineedit: don't fall back to simple line input if tty is in raw modeTestcase: shell command input after python ^Z should still work Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bartosz GolaszewskiBartosz Golaszewski
202d9a64648Config: select PLATFORM_LINUX if using sendfile()Man entry for sendfile: Not specified in POSIX.1-2001, or other standards. Other UNIX systems implement sendfile() with different semantics and prototypes. It should not be used in portable programs. Select PLATFORM_LINUX if enabling FEATURE_USE_SENDFILE. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Jacob KjaergaardJacob Kjaergaard
bd7c1f2d13cflashcp: change BUFSIZE to 4ksome flash partitions can be smaller than the existing BUFSIZE thus write BUFSIZE will fail with "no space left on device" Signed-off-by: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
cfcd2399b20make xmalloc_open_zipped_read_close result NUL terminatedCompat with xmalloc_open_read_close Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b4c11c13971libarchive: add capability to unpack to mem.bufferThe performance and number of processes for a "depmod -a" with gzipped modules was abysmal. This patch adds a code path without fork, benefiting all users of xmalloc_open_zipped_read_close. "modinfo radeon.ko.gz", a single-file reader, got 30% faster. "depmod -a", which used to fork over 800 times, got 20% faster. Heavily based on a patch by Lauri Kasanen <curaga@operamail.com> function ...
Denys VlasenkoDenys Vlasenko
e7800f351adRename transformer_aux_data_t -> transformer_state_tNo code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
476654cdbebman: do not mangle $MANPATH in memorySigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bartosz GolaszewskiBartosz Golaszewski
8d75d794ea5libbb: use sendfile() to copy data between file descriptorsBusybox already uses sendfile in httpd. This patch proposes to use it globally to copy data between file descriptors. It speeds up the copying on slow systems a lot - below are the times needed to copy a 450Mb file with and without this option enabled on a BeagleBone Black: sendfile: user 0m0.000s sys 0m8.170s read/write 4k: user 0m0.470s sys 0m16.300s function ...
Denys VlasenkoDenys Vlasenko
ee41094b809man: accept a list of dirs in $MANPATHfunction old new delta add_MANPATH - 143 +143 man_main 852 731 -121 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 143/-121) Total: 22 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
04c14176023libbb: use ARG_MAX for bb_arg_max() only if it's 60k+Sometimes ARG_MAX is small (like 32k) yet sysconf(_SC_ARG_MAX) is big, and people prefer using the bigger value. OTOH, with sufficiently large ARG_MAX, further wins from sysconf(_SC_ARG_MAX) being bigger are exponentially smaller: you can see 4 times fewer fork+execs when you run find, but when each execed process already takes a thousand parameters it's likely execution time is dominated by w...
Denys VlasenkoDenys Vlasenko
2835a224cd6bbunit: fix WANT_TIMING compilationSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bartosz GolaszewskiBartosz Golaszewski
eff58f15b05gitignore: add testsuite/echo-neSigned-off-by: Bartosz Golaszewski <bartekgola at gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
298fabaefcdudhcpd: if a lease from lease file coincides with a static one, ignore itfunction old new delta read_leases 269 328 +59 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>