3f3190e34c
less: total cleanup and bugfix. Doesn't die horribly on binary files anymore. In fact, they _100%_ work now. Control chars are in reverse video, including DEL and that idiocy of VT-10x, Meta-ESC [inventor of which should be prohibited from reproducing]. Regex search is fixed also. When you specify search ('/' key), control chars turn into dots (unhighlighted), and found occurrences highlighted instead. This is reversible. Memory management fixed (was leaky as hell) and optimized. Linewrapping fixed and thoroughly tested. Max buffer size made configurable. ~ 600 bytes saved.
Denis Vlasenko
2006-12-21 00:22:03 +00:00
9a7cef930f
less: somewhat buggy applet, but nice. Muchly reduced xstrdup'ing and memory consumption. Made linewrap saner. regex matching code was awful - still buggy, but not as leaky as before. Made buffer size configurable. Killed several static and on-stack buffers. Hopefully eliminated staircase effect on Ctrl-C (unable to reproduce).
Denis Vlasenko
2006-12-20 02:46:48 +00:00
b95636c52f
remove casts from xmalloc()
Denis Vlasenko
2006-12-19 23:36:04 +00:00
2375d75f32
ifupdown: do not print and/or execute empty commands ("").
Denis Vlasenko
2006-12-19 23:15:46 +00:00
8cd1a288fa
ifupdown: parse() returning NULL and returning "" is not the same, it turned out! wow... okay, fixing my buglet...
Denis Vlasenko
2006-12-19 23:01:33 +00:00
28703015ab
u_short, ulong exterminated fdiskXXX: add a bit of sanity (not enough by far)
Denis Vlasenko
2006-12-19 20:32:02 +00:00
f58906b646
cmdedit: fix my bug, improve code a bit
Denis Vlasenko
2006-12-19 19:30:37 +00:00
28fbd69bf8
- use xlisten/xsocket some more. Saves .25 kB
Bernhard Reutner-Fischer
2006-12-19 16:31:09 +00:00
359d7ca0e7
- rename SU_SYSLOG to FEATURE_SU_SYSLOG
Bernhard Reutner-Fischer
2006-12-19 08:55:38 +00:00
7f1dc21a5d
cmdedit: use qsort for sorting command completion results; style fixes
Denis Vlasenko
2006-12-19 01:10:25 +00:00
8eb3b391ad
passwd: add option to check passwords for weakness
Denis Vlasenko
2006-12-19 00:33:53 +00:00
249fabf1a3
Add option to disable command execution from vi & awk
Denis Vlasenko
2006-12-19 00:29:22 +00:00
15b213ef5a
su: make /etc/shells check configurable ash: missing ';'
Denis Vlasenko
2006-12-19 00:20:20 +00:00
db50647d1f
httpd: we don't have FEATURE_HTTPD_WITHOUT_INETD anymore, remove it from Config.in
Denis Vlasenko
2006-12-17 20:18:05 +00:00
b8c77b5b25
start_stop_daemon: make code a bit more readable
Denis Vlasenko
2006-12-17 19:43:10 +00:00
0f5905e617
od: remove bug-for-bug compat (because the bug was fixed in coreuitls)
Denis Vlasenko
2006-12-17 19:21:13 +00:00
c88894602d
tar: report error if child dies while writing out the end of tarball (e.g. out of disk space).
Denis Vlasenko
2006-12-17 19:08:20 +00:00
b131b271a0
start_stop_daemon: fix bug where any program name was "matching" processes for which readlink(/proc/N/exe) fails
Denis Vlasenko
2006-12-17 17:30:01 +00:00
7cdc54ff59
fix/shorten some usage strings
Denis Vlasenko
2006-12-17 17:27:56 +00:00
a883fa4cee
exterminate last bzero's version bump to 1.3.0
Denis Vlasenko
2006-12-13 23:52:32 +00:00
9729e65706
- honor CONFIG_DEBUG
Bernhard Reutner-Fischer
2006-12-13 17:44:24 +00:00
5b6f776fe9
- remove warning about unused depth parameter in add_to_dirlist() - make one variable static and add comment about why the other variables there are not static.
Bernhard Reutner-Fischer
2006-12-13 16:50:15 +00:00
b15b7f7a4a
more: fix for case when _FILE_OFFSET_BITS is not #defined. samll size improvement.
Denis Vlasenko
2006-12-10 01:57:29 +00:00
57d83ff5f9
- Proposed fix to make aliases work (with uClibc-current). See comment in the patch about the change introduced in r16342.
Bernhard Reutner-Fischer
2006-12-07 12:25:17 +00:00
1819eee436
- Improve wording in error message.
Bernhard Reutner-Fischer
2006-12-07 12:18:36 +00:00
95da177b09
- s/:\t\t/\t/ for two helptexts.
Bernhard Reutner-Fischer
2006-12-07 12:16:17 +00:00
b7c50c9896
- remove a warning that was not ment to be checked in.
Bernhard Reutner-Fischer
2006-12-06 23:14:31 +00:00
feea1b972c
- better distinction between CFLAGS and CPPFLAGS.
Bernhard Reutner-Fischer
2006-12-06 21:51:59 +00:00
bc95f57932
- adjust to kernel's build infrastructure.
Bernhard Reutner-Fischer
2006-12-06 15:29:00 +00:00
882e60c442
- shrink less. 01a: svn version 01b: merge past_eof and inp_stdin into flags. 01c: merge match_backwards into flags. 01d: add handling of <HOME> and <END> keys, remove set_tty_raw, use fflush_stdout_and_exit 01e: rewrite special-key handling to be smaller. 01f: changing the format saves 4 bytes (alot of places would benefit from this) text data bss dec hex filename 9034 8 648 9690 25da less.o.01a 9023 8 640 9671 25c7 less.o.01b 9027 8 636 9671 25c7 less.o.01c 9068 8 636 9712 25f0 less.o.01d 8990 8 636 9634 25a2 less.o.01e 8986 8 636 9630 259e less.o.01f
Bernhard Reutner-Fischer
2006-12-04 16:04:50 +00:00
bbda98f14c
- cosmetic change to avoid warnings about eventual padding/packing.
Bernhard Reutner-Fischer
2006-12-04 15:58:27 +00:00
bb59f02218
- make sure we pickup the correct defines. Guards against 2.6.19 kernel-headers.
Bernhard Reutner-Fischer
2006-12-04 15:57:17 +00:00
91d4a2dac3
- commentary typo
Bernhard Reutner-Fischer
2006-12-02 20:47:36 +00:00
1375bc7b67
sed: fix handling of files not ending in '\n'
Denis Vlasenko
2006-12-02 20:12:12 +00:00
eb98be02ac
"kernel config" -> "busybox config" suggested by Roberto A. Foglietta <roberto.foglietta@gmail.com>
Denis Vlasenko
2006-11-30 22:40:32 +00:00
93f6aa6bca
"make bigdata" biggest offender dealt with: xmalloc 16Kb buffer instead of keeping it in bss
Denis Vlasenko
2006-11-30 21:11:01 +00:00
610c4aa197
ed: convert style to bbox's. No code changes.
Denis Vlasenko
2006-11-30 20:57:50 +00:00
002526481e
passwd: small size optimization. salt generation improved (really generated different salts even if called back-to-back).
Denis Vlasenko
2006-11-30 20:41:28 +00:00
ab24e18c7a
passwd: rework: * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes
Denis Vlasenko
2006-11-30 16:41:15 +00:00
b8bb27c7ea
- save 4 bytes text data bss dec hex filename 764 0 80 844 34c vlock.o.oorig 760 0 80 840 348 vlock.o
Bernhard Reutner-Fischer
2006-11-30 14:53:51 +00:00
28bb84bd4e
Well, I am not 100.00% usre that uint16 will suffice there. We don't lose anything by using 'unsigned' instead.
Denis Vlasenko
2006-11-29 23:15:04 +00:00
016a82e279
another -90 bytes. That #define is **evil**
Denis Vlasenko
2006-11-29 22:47:42 +00:00
66b86c6902
mkfs.minix: more cleanups, -~300 bytes of code. Added debugging support.
Denis Vlasenko
2006-11-29 22:33:47 +00:00
c6ce8733dd
cut 0.5k off mkfs.minix assorted strtoul fixes (that's what brought me into minix)...
Denis Vlasenko
2006-11-29 18:15:52 +00:00
a35c9e91ba
httpd: fix decode of '/' when called via -d
Denis Vlasenko
2006-11-29 15:58:50 +00:00
2425bdce34
od: fix buglet in --traditional, microoptimization, document coreutils bug bloat-o-meter: account for objects in rodata too
Denis Vlasenko
2006-11-29 14:32:01 +00:00
834410a5a5
getopt32-ification of fdisk
Denis Vlasenko
2006-11-29 12:00:28 +00:00
c61852a02b
fix support for globally disabling --long-options. (disabling them saves ~4K on fully configured bbox)
Denis Vlasenko
2006-11-29 11:09:43 +00:00
601ae1378b
od: sometime ago I landed BIG od implementation from coreutils. My fault. This commit contains cleanups and size reductions.
Denis Vlasenko
2006-11-28 23:37:46 +00:00
df38188367
fix bug in new str -> num convertors
Denis Vlasenko
2006-11-28 10:54:16 +00:00
7df69b887a
usage: fix few help texts, fix breakage: '\<tab>' sequence utterly confused cpp :)
Denis Vlasenko
2006-11-28 00:46:49 +00:00
c2f5b02293
udhcpc: fix my breakage
Denis Vlasenko
2006-11-28 00:21:46 +00:00
1fffe38e01
fix udhcpc help message, take steps to make usage.h less messy
Denis Vlasenko
2006-11-28 00:06:39 +00:00
229b3d2072
do not overflow ifr_name. maybe it was safe in some places, but not everywhere. err to the safe side.
Denis Vlasenko
2006-11-27 23:44:57 +00:00
e2d3ded354
udhcpc: convert to getopt32
Denis Vlasenko
2006-11-27 23:43:28 +00:00
5e90e10647
Closing bug 1040: The "quiet" option is quietly (hah) ignored. It should be passed through to the mount() syscall in the comma separated list of options. I found the problem with the vfat/msdos filesystems, which uses a quiet option to override some complaints and errors.
Denis Vlasenko
2006-11-27 19:50:16 +00:00
f1a6c6b362
erase_mtab: do not limit ourself to 40 mtab entries
Denis Vlasenko
2006-11-27 17:29:09 +00:00
097c324f59
fix remaining survivors of the return(a) cleanup
Denis Vlasenko
2006-11-27 16:59:15 +00:00
d9e15f2068
style cleanup: return(a) -> return a, part 2
Denis Vlasenko
2006-11-27 16:49:55 +00:00
079f8afa0a
style cleanup: return(a) -> return a, part 1
Denis Vlasenko
2006-11-27 16:49:31 +00:00
10d0d4eec7
byteswap ops had extra mask ops - removed
Denis Vlasenko
2006-11-27 16:48:17 +00:00