Denys Vlasenko
b773f715d6
tar: handle 256-base encoding in mtime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-08 18:58:09 +02:00
Denys Vlasenko
da49f58524
move libc related stuff out of platform.h
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-08 02:58:38 +02:00
Denys Vlasenko
95cc814dbd
udhcpd: fix a bug in add_lease where it was reading at [-1]
...
It is not correct when we read lease file!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-07 14:59:30 +02:00
Denys Vlasenko
a51543a3a4
reformime: small code and style fixes. no material changes in behavior.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-07 07:52:34 +02:00
Denys Vlasenko
7e7e08fb09
tweak MD5 config text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-06 23:24:20 +02:00
Denys Vlasenko
57dc5345e2
pgrep/pkill: support -s and -P options
...
function old new delta
pgrep_main 510 580 +70
packed_usage 26575 26616 +41
act 234 236 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 113/0) Total: 113 bytes
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-06 00:00:12 +02:00
Denys Vlasenko
666e1d3978
tweak sendmail and makemime help texts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 21:46:37 +02:00
Denys Vlasenko
fe4ef36bcd
libbb/sha: #undef macro names before #defining them.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 20:34:38 +02:00
Denys Vlasenko
6f58be0748
cp: make "non-POSIX" cp a bit more consistent
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 13:24:17 +02:00
Denys Vlasenko
2d7b5bfa9b
cp: by popular demand, make it POSIX compliant (but less safe)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 12:49:29 +02:00
Denys Vlasenko
09e63bb81f
df: fix "df /"
...
also, clean up mount checks in mkfs/fsck.
function old new delta
find_mount_point 243 261 +18
sha1_process_block64 497 510 +13
find_main 436 444 +8
display_speed 85 90 +5
df_main 795 793 -2
parse_command 1463 1460 -3
static.ignored_mounts 8 - -8
mkfs_minix_main 2962 2937 -25
fsck_minix_main 3065 2970 -95
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 04:50:36 +02:00
Denys Vlasenko
9b1b62adc4
Patches to enable FreeBSD build
...
platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.
Code seems to not be affected in my testing.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05 03:34:12 +02:00
Denys Vlasenko
b22bbfffec
fix dependencies of FEATURE_GETOPT_LONG
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-04 16:50:43 +02:00
Denys Vlasenko
fca70a8cce
ps: conditionally support additional -o FIELDs
...
function old new delta
procps_scan 1409 1642 +233
out_spec 220 300 +80
func_ruser - 36 +36
func_rgroup - 36 +36
func_group 13 49 +36
func_nice - 29 +29
buffer_fill_and_print 179 196 +17
send_tree 355 360 +5
mkfs_vfat_main 1604 1609 +5
display_speed 85 90 +5
scriptreplay_main 194 197 +3
find_out_spec 55 58 +3
changepath 192 195 +3
sha1_process_block64 497 484 -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 10/1 up/down: 491/-13) Total: 478 bytes
Signed-off-by: David Krakov <krakov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-03 22:16:17 +02:00
Denys Vlasenko
c5d07fba29
svlogd: do not overrun read buffer (fixes bug 439)
...
function old new delta
rotate 513 534 +21
logdirs_reopen 1291 1296 +5
processorstart 409 385 -24
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-03 18:31:23 +02:00
Denys Vlasenko
97ef65483a
udhcpc: support option 0x79 (static routes) (part of bug 341)
...
function old new delta
xmalloc_optname_optval - 583 +583
dhcp_option_strings 258 266 +8
dhcp_options 70 72 +2
len_of_option_as_string 11 12 +1
dhcp_option_lengths 11 12 +1
udhcp_run_script 1187 669 -518
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/1 up/down: 595/-518) Total: 77 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-03 18:14:03 +02:00
Denys Vlasenko
7895b91743
udhcp: dname_dec may return NULL, account for that case
...
Other random cleanips included...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-03 16:59:59 +02:00
Denys Vlasenko
c3b6f2c7e1
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
2009-07-03 16:59:37 +02:00
Denys Vlasenko
ae05dd42ca
ls: make --color more compatible with coreutils
...
function old new delta
static.color_str - 34 +34
static.ls_longopts - 9 +9
ls_color_opt 9 - -9
ls_main 865 843 -22
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 43/-31) Total: 12 bytes
text data bss dec hex filename
820145 450 7692 828287 ca37f busybox_old
820144 450 7692 828286 ca37e busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-03 12:22:19 +02:00
Bernhard Reutner-Fischer
86e992da84
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:19:49 +02:00
Bernhard Reutner-Fischer
ec97062b20
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:15:54 +02:00
Bernhard Reutner-Fischer
ca4f8d54e5
test commit
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:06:15 +02:00
Denys Vlasenko
5508363fd0
ls: fix --color handling. Closes bug 435.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-02 14:25:51 +02:00
Denys Vlasenko
5478aaf5b8
mdev: be more permissive on errors (dont die): mdev -s users want that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-02 13:17:10 +02:00
Denys Vlasenko
90db359972
mdev: set $MDEV correctly for renamed nodes
...
function old new delta
make_device 1467 1502 +35
build_alias 78 - -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-02 13:07:11 +02:00
Denys Vlasenko
cf4e503875
Added kernel patch for /proc/self/exe to examples
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-02 12:04:50 +02:00
Denys Vlasenko
7d5ddf14a3
wget: remove IPv6 scope id in Host: field (apache compat)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-30 20:36:27 +02:00
Denys Vlasenko
8bca3e20b9
sed: fix handling of 1d;1,3p and 1d;1,REGEXp
...
function old new delta
process_files 2084 2173 +89
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-30 19:19:37 +02:00
Denys Vlasenko
f1fab09242
wget: fix redirection from HTTP to FTP server
...
while at it, sanitize redirection in general; add printout
of every redirection hop; make sure we won't print any non-ASCII
garbage from remote server in error meesages.
function old new delta
sanitize_string - 14 +14
parse_url 294 301 +7
gethdr 190 197 +7
wget_main 2326 2331 +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 33/0) Total: 33 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-28 03:33:57 +02:00
Denys Vlasenko
ab0c8d7b35
wget: remove strange *&var construct.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-28 01:23:35 +02:00
Denys Vlasenko
7f43280420
wget: code shrink by splitting main() into easier-to-optimize functions
...
function old new delta
retrieve_file_data - 356 +356
wget_main 2793 2326 -467
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 356/-467) Total: -111 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-28 01:02:24 +02:00
Denys Vlasenko
1881ba48b1
Update a comment, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-27 22:09:28 +02:00
Denys Vlasenko
4fc5ec56f9
device matching against UUIDs: do not try floppies
...
function old new delta
uuidcache_check_device 255 292 +37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-27 21:58:25 +02:00
Denys Vlasenko
eb1cda2f2d
trylink: don't use ld --gc-sections if ld doesn't support it
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-27 00:24:35 +02:00
Denys Vlasenko
7e6034309e
printf: (allegedly) fix testsuite failure
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-27 00:07:23 +02:00
Denys Vlasenko
4248c33a85
udhcpc: fix a read error loop (e.g.: device is down) blocking TERM
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-26 23:23:16 +02:00
Denys Vlasenko
d30b89c7ee
updates for supporting Linux kernel build and initrd utilities
...
cpio: --verbose, --quiet, --to-stdout
test: make 64-bit math enable-able for hush too
dnsdomainname: alias to hostname -d
hostname: support --fqdn, --domain, --file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-26 01:55:45 +02:00
Denys Vlasenko
2f86ca1350
mdev: fix the case when move rule deletes node with name == device_name
...
Signed-off-by: Jean Wolter <jw5@os.inf.tu-dresden.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-22 01:31:12 +02:00
Denys Vlasenko
b0bee2b0da
trim/regularize usage texts. -92 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-20 03:59:02 +02:00
Denys Vlasenko
7a76eba1f6
udhcp: fix trivial compile error
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 13:51:29 +02:00
Denys Vlasenko
8e5d83b6c1
mkswap: remove configuration for v0 support
...
mkswap hasn't had v0 support since commit
d893b120bae5a9bdef4cfda2df5e62867d6b1cd0; it doesn't seem to make sense
to offer it for configuration.
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 13:45:01 +02:00
Denys Vlasenko
beca96ffa7
mkswap: separate UUID feature
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 13:14:48 +02:00
Denys Vlasenko
f3b92d3856
getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 12:10:38 +02:00
Denys Vlasenko
e2e4cc249d
mount: support -i; pass through -f and -n to helpers as necessary
...
function old new delta
mount_it_now 298 345 +47
singlemount 776 772 -4
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 11:48:29 +02:00
Denys Vlasenko
b96159d663
mkswap: accidentally committed wrong patch. fix it up
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 11:00:52 +02:00
Denys Vlasenko
e1e2273076
mkswap: improve randomness of UUID generation set version/variant bits
...
function old new delta
mkswap_main 317 410 +93
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-19 09:49:01 +02:00
Denys Vlasenko
bf4aeed129
printf: fix exit code on conversion error
...
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-18 22:22:04 +02:00
Denys Vlasenko
c9f280cc46
mkswap: generate UUID if CONFIG_DESKTOP=y. +110 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-18 21:55:47 +02:00
Denys Vlasenko
2207cd6e14
tweak to config wording, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-18 19:59:51 +02:00
Denys Vlasenko
bcbd37df24
tweak Config texts and some broken English elsewhere
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-18 13:23:58 +02:00