oweals/busybox.git
12 years agoFix compile failure in ll_proto.c
Denys Vlasenko [Mon, 3 Sep 2012 09:41:30 +0000 (11:41 +0200)]
Fix compile failure in ll_proto.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoblkid: add support for nilfs2
Sven-Göran Bergh [Sun, 2 Sep 2012 13:34:39 +0000 (15:34 +0200)]
blkid: add support for nilfs2

function                                             old     new   delta
volume_id_probe_nilfs                                  -      99     +99
fs2                                                   52      56      +4

Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovolume_id: code shrink
Denys Vlasenko [Sun, 2 Sep 2012 13:33:47 +0000 (15:33 +0200)]
volume_id: code shrink

function                                             old     new   delta
volume_id_set_unicode16                              200     173     -27

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoblkid: add type display for btrfs
Sven-Göran Bergh [Sun, 2 Sep 2012 12:56:25 +0000 (14:56 +0200)]
blkid: add type display for btrfs

Signed-off-by: Sven-Göran Bergh <svengbergh-busybox@yahoo.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoll_proto.c: code shrink
Denys Vlasenko [Sun, 2 Sep 2012 12:29:45 +0000 (14:29 +0200)]
ll_proto.c: code shrink

   text    data     bss     dec     hex filename
    762       0       0     762     2fa ll_proto.o.old
    526       0       0     526     20e ll_proto.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agostyle fixes, no code changes
Denys Vlasenko [Sun, 2 Sep 2012 12:29:14 +0000 (14:29 +0200)]
style fixes, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agogetty: tweak style, no code changes
Denys Vlasenko [Sun, 2 Sep 2012 11:57:49 +0000 (13:57 +0200)]
getty: tweak style, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agowget: try reading after poll timeout - stdio may have buffered data. Closes 5426
Denys Vlasenko [Thu, 16 Aug 2012 14:52:27 +0000 (16:52 +0200)]
wget: try reading after poll timeout - stdio may have buffered data. Closes 5426

function                                             old     new   delta
retrieve_file_data                                   436     451     +15

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agogetty: add commented-out extended error diagnostic
Denys Vlasenko [Thu, 16 Aug 2012 11:29:25 +0000 (13:29 +0200)]
getty: add commented-out extended error diagnostic

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agologin: increase login name size limit from 32 to 64
Denys Vlasenko [Wed, 15 Aug 2012 15:06:37 +0000 (17:06 +0200)]
login: increase login name size limit from 32 to 64

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoudhcp[cd]: fix binding to network aliases. Closes 5432, 5438
Denys Vlasenko [Thu, 9 Aug 2012 22:27:22 +0000 (00:27 +0200)]
udhcp[cd]: fix binding to network aliases. Closes 5432, 5438

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agolineedit: fix Alt-D when cursor==0
Cliff Frey [Tue, 7 Aug 2012 15:59:40 +0000 (17:59 +0200)]
lineedit: fix Alt-D when cursor==0

Signed-off-by: Cliff Frey <cliff@meraki.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoplatform.h: disable ALIGNn macros for s390[x]
Denys Vlasenko [Mon, 6 Aug 2012 15:17:15 +0000 (17:17 +0200)]
platform.h: disable ALIGNn macros for s390[x]

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agodisable format security warnings
Mike Frysinger [Sat, 4 Aug 2012 20:14:24 +0000 (16:14 -0400)]
disable format security warnings

We pass strings to printf directly a lot.  Some distros enable some flags
in their gcc by default like -Wformat-security.  With these two things, we
end up with a lot of build warnings like so:
loginutils/chpasswd.c:42:3: warning: format not a string literal and
no format arguments [-Wformat-security]

But we don't care.  Our focus is first and foremost on size, so adding a
lot of dummy calls like:
- printf(some_constant_string);
+ printf("%s", some_constant_string);
is pointless bloat.

Disable this warning flag if the compiler supports it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoudhcpc: make -O <numeric_opt> work. Closes 5402
Denys Vlasenko [Fri, 27 Jul 2012 11:25:07 +0000 (13:25 +0200)]
udhcpc: make -O <numeric_opt> work. Closes 5402

function                                             old     new   delta
udhcpc_main                                         2642    2685     +43
udhcp_recv_raw_packet                                414     415      +1
d6_recv_raw_packet                                   248     249      +1
udhcpc6_main                                        2430    2413     -17
add_client_options                                   239     213     -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 45/-43)              Total: 2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoSimplify copyright/license notice that appears in the binary.
Bradley M. Kuhn [Fri, 13 Jul 2012 15:38:38 +0000 (11:38 -0400)]
Simplify copyright/license notice that appears in the binary.

Existing copyright notice for binary would need to be longer to achieve
optimal accuracy.  This compromise punts to the source for full notices,
but does note the years of the copyrights and that there are many authors,
all licensing under GPLv2.

Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org>
Signed-off-by: Tony Sebro <tony@sfconservancy.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoAdd yet another missing ALIGN2 on a global declaration.
Denys Vlasenko [Thu, 26 Jul 2012 10:58:41 +0000 (12:58 +0200)]
Add yet another missing ALIGN2 on a global declaration.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agodhcpd: write lease file on exit
Denys Vlasenko [Tue, 24 Jul 2012 15:21:26 +0000 (17:21 +0200)]
dhcpd: write lease file on exit

function                                             old     new   delta
udhcpd_main                                         1431    1403     -28

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years ago*: declare strings with ALIGN1, as appropriate
Aurelien Jarno [Tue, 24 Jul 2012 14:28:34 +0000 (16:28 +0200)]
*: declare strings with ALIGN1, as appropriate

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years ago*: declare strings with ALIGN1, as appropriate
Michael Tokarev [Tue, 24 Jul 2012 13:56:37 +0000 (15:56 +0200)]
*: declare strings with ALIGN1, as appropriate

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotestsuite: make mkfs.minix test not fail spuriously on big endian
Yao Zhao [Tue, 24 Jul 2012 11:58:12 +0000 (13:58 +0200)]
testsuite: make mkfs.minix test not fail spuriously on big endian

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: allow 'w' cmd to use two address form
Mimi Li [Tue, 24 Jul 2012 11:20:12 +0000 (13:20 +0200)]
sed: allow 'w' cmd to use two address form

function                                             old     new   delta
add_cmd                                             1101    1094      -7

Signed-off-by: Mimi Li <felloak@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotftpd: fix -u USER to work with chroot. Closes 5348
Denys Vlasenko [Wed, 18 Jul 2012 15:32:32 +0000 (17:32 +0200)]
tftpd: fix -u USER to work with chroot. Closes 5348

function                                             old     new   delta
tftpd_main                                           546     568     +22
tftp_protocol                                       1844    1839      -5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoawk: fix FS assignment behavior. Closes 5108
Denys Vlasenko [Tue, 10 Jul 2012 23:27:15 +0000 (01:27 +0200)]
awk: fix FS assignment behavior. Closes 5108

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoftpd: free allocated string on error path
Denys Vlasenko [Tue, 10 Jul 2012 22:26:24 +0000 (00:26 +0200)]
ftpd: free allocated string on error path

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoftpd: fix MDTM's month value. Closes 5336
Denys Vlasenko [Tue, 10 Jul 2012 22:16:08 +0000 (00:16 +0200)]
ftpd: fix MDTM's month value. Closes 5336

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoash: add a comment about VEXPORT
Denys Vlasenko [Sat, 7 Jul 2012 19:40:35 +0000 (21:40 +0200)]
ash: add a comment about VEXPORT

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agofbset: respect rgba configuration lines in fb.modes
Linus Walleij [Sun, 1 Jul 2012 20:34:42 +0000 (22:34 +0200)]
fbset: respect rgba configuration lines in fb.modes

The fbset utility would not respect "rgba" config entries in
the fb.modes file such as this (for the ARM Integrator/CP):

mode "640x480-60-clcd"
    # D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz
    geometry 640 480 640 480 16
    timings 39722 48 16 33 10 96 2
    rgba 5/10,5/5,5/0,1/15
endmode

This is important especially for this ARGB5551 device which
is hopeless to configure otherwise. I noticed this lacking
feature after the TI "fbtest" program managed to set up the
the colormode correctly.

Signed-off-by: Linus Walleij <triad@df.lth.se>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoacpid: add missing lid switch definition
Eric Martin [Sat, 7 Jul 2012 17:06:50 +0000 (19:06 +0200)]
acpid: add missing lid switch definition

This patch adds a missing LID0 switch definition.
Without it, closing the notebook lid is not detected by acpid.

Signed-off-by: Eric Martin <eric.martin@gmx.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoinclude sys/resource.h where needed
Mike Frysinger [Fri, 6 Jul 2012 03:19:09 +0000 (23:19 -0400)]
include sys/resource.h where needed

We use functions from sys/resource.h in misc applets, but don't include
the header.  This breaks building with newer glibc versions, so add the
include where needed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agomount: support strictatime option. Closes 5240
Denys Vlasenko [Tue, 26 Jun 2012 14:09:00 +0000 (16:09 +0200)]
mount: support strictatime option. Closes 5240

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoawk: make -F STR interpret escape sequences. Closes 5126
Denys Vlasenko [Fri, 22 Jun 2012 16:41:01 +0000 (18:41 +0200)]
awk: make -F STR interpret escape sequences. Closes 5126

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agodpkg: fix creation of .list files (were empty since b768aeb). Closes 5324
Denys Vlasenko [Fri, 22 Jun 2012 14:27:21 +0000 (16:27 +0200)]
dpkg: fix creation of .list files (were empty since b768aeb). Closes 5324

While at it, fix filename order and free the list of names.

function                                             old     new   delta
llist_rev                                              -      21     +21
get_header_tar                                      1733    1741      +8
unpack_package                                       587     585      -2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 29/-2)              Total: 27 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotrivial small speed optimization
Denys Vlasenko [Fri, 22 Jun 2012 13:54:05 +0000 (15:54 +0200)]
trivial small speed optimization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomount: do not pass "comment=ANYTHING" option to kernel. Closes 5240
Denys Vlasenko [Fri, 22 Jun 2012 13:17:18 +0000 (15:17 +0200)]
mount: do not pass "comment=ANYTHING" option to kernel. Closes 5240

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomount: undo recent breakage when mount flags were made unsigned
Denys Vlasenko [Fri, 22 Jun 2012 13:06:27 +0000 (15:06 +0200)]
mount: undo recent breakage when mount flags were made unsigned

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomount: fix the wrongly stored fs creation time
Denys Vlasenko [Thu, 21 Jun 2012 14:50:46 +0000 (16:50 +0200)]
mount: fix the wrongly stored fs creation time

This bug made our ext2 images non-mountable by ext4 driver.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomount: set up RO loop device if mount -o ro. Closes 4784
Denys Vlasenko [Thu, 21 Jun 2012 10:08:56 +0000 (12:08 +0200)]
mount: set up RO loop device if mount -o ro. Closes 4784

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotweak help texts
Denys Vlasenko [Thu, 21 Jun 2012 07:45:11 +0000 (09:45 +0200)]
tweak help texts

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoadduser: install to /usr, not /, like all other similar tools
Denys Vlasenko [Wed, 20 Jun 2012 18:35:58 +0000 (20:35 +0200)]
adduser: install to /usr, not /, like all other similar tools

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoMove several applets to different install dir:
Denys Vlasenko [Wed, 20 Jun 2012 18:24:57 +0000 (20:24 +0200)]
Move several applets to different install dir:

Moved to [/usr]/sbin:
addgroup, adduser, delgroup, deluser,
arping, chat, ether-wake, fdformat, ifplugd,
ip, ipaddr, iplink, iproute, iprule, iptunnel,
killall5, readahead, rtcwake, tftpd, add-shell, remove-shell, powertop.

Moved to /bin for /usr/bin: kbd_mode.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotweak help text
Denys Vlasenko [Tue, 19 Jun 2012 10:46:59 +0000 (12:46 +0200)]
tweak help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agobuild system: fix build of kconfig on Darwin
Bernhard Walle [Sun, 17 Jun 2012 23:51:26 +0000 (01:51 +0200)]
build system: fix build of kconfig on Darwin

Of course busybox cannot be used on Darwin (Mac OS X), but it can be
cross-compiled for Linux there. Cross-compilation still requires kconfig
to be built as native host tool.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agowget: fix wget-supports--P testsuite failure. Closes 4940
Denys Vlasenko [Sun, 17 Jun 2012 18:21:30 +0000 (20:21 +0200)]
wget: fix wget-supports--P testsuite failure. Closes 4940

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoconfig: do not refer to HTTPS for wget
Pierre Carrier [Sun, 17 Jun 2012 17:59:53 +0000 (19:59 +0200)]
config: do not refer to HTTPS for wget

Signed-off-by: Pierre Carrier <pierre@spotify.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agowget: make -c _not_ truncate the file
Denys Vlasenko [Sun, 17 Jun 2012 17:52:25 +0000 (19:52 +0200)]
wget: make -c _not_ truncate the file

function                                             old     new   delta
retrieve_file_data                                   396     436     +40
reset_beg_range_to_zero                               52      45      -7

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agounzip: make options parsing more robust on getopt w/o gnu extensions
Denys Vlasenko [Fri, 15 Jun 2012 14:43:26 +0000 (16:43 +0200)]
unzip: make options parsing more robust on getopt w/o gnu extensions

Also, code shrank:

function                                             old     new   delta
static.extn                                           15      10      -5
packed_usage                                       29231   29217     -14
unzip_main                                          2388    2291     -97
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-116)           Total: -116 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoMerge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Denys Vlasenko [Thu, 14 Jun 2012 15:30:04 +0000 (17:30 +0200)]
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox

12 years agowget: correctly handle failure to -c (continue)
Denys Vlasenko [Wed, 13 Jun 2012 15:31:07 +0000 (17:31 +0200)]
wget: correctly handle failure to -c (continue)

function                                             old     new   delta
reset_beg_range_to_zero                                -      52     +52
wget_main                                           2168    2189     +21

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agowget: add dummy --no-cache
Vladimir Dronnikov [Wed, 13 Jun 2012 15:29:41 +0000 (17:29 +0200)]
wget: add dummy --no-cache

function                                             old     new   delta
static.wget_longopts                                 155     166     +11
packed_usage                                       29259   29231     -28

Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agops: use separate get_uptime() and make it work on non-linux too
Michael Tokarev [Wed, 13 Jun 2012 00:51:56 +0000 (02:51 +0200)]
ps: use separate get_uptime() and make it work on non-linux too

Create get_uptime() function in procps/ps.c, and use it rather than
relying on linux-specific sysinfo() inline.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agonanddump: make dumping read-only partitions work
Matt Reimer [Wed, 30 May 2012 14:31:13 +0000 (10:31 -0400)]
nanddump: make dumping read-only partitions work

Make dumping read-only partitions work by opening the device
O_RDONLY; otherwise the open() will fail with -EPERM.

Signed-off-by: Matt Reimer <mreimer@sdgsystems.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomodinfo: match more standard module fields and fix version field
Tanguy Pruvot [Wed, 30 May 2012 06:00:46 +0000 (08:00 +0200)]
modinfo: match more standard module fields and fix version field

Previously, -F version could match the srcversion= string.

before :
  ~ # modinfo -F version tiwlan_drv
  version:        6.1.2012.05.29
  version:        533BB7E5866E52F63B9ACCB
  version:        0x%x, oui=0x%x, 0x%x, 0x%x
  version:        0x%x

  ~ # modinfo tiwlan_drv
  filename:       tiwlan_drv.ko
  author:         Texas Instruments Inc - Retouched by CyanogenDefy
  license:        GPL
  vermagic:       2.6.32.9 preempt mod_unload ARMv7
  parm:           g_sdio_debug_level:debug level
  depends:

now :
  ~ # modinfo -F version tiwlan_drv
  version:        6.1.2012.05.29

  ~ # modinfo tiwlan_drv
  filename:       tiwlan_drv.ko
  license:        GPL
  author:         Texas Instruments Inc - Retouched by CyanogenDefy
  version:        6.1.2012.05.29
  srcversion:     533BB7E5866E52F63B9ACCB
  depends:
  uts_release:    2.6.32.9-g306944c
  vermagic:       2.6.32.9 preempt mod_unload ARMv7
  parm:           g_sdio_debug_level:debug level

This patch also add support for the old "-n" and some other helpers

Change-Id: Icb4e9ca513cbce46b075a6f038799a7a19fb7e22
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovolume_id/ext: use common bb_e2fs_defs.h for ext2/3/4 constants and structs
Denys Vlasenko [Tue, 12 Jun 2012 13:00:35 +0000 (15:00 +0200)]
volume_id/ext: use common bb_e2fs_defs.h for ext2/3/4 constants and structs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosu: do not change to home dir unless -l
Pascal Bellard [Tue, 12 Jun 2012 11:21:02 +0000 (13:21 +0200)]
su: do not change to home dir unless -l

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoremove FEATURE_VI_OPTIMIZE_CURSOR from example config
Denys Vlasenko [Mon, 11 Jun 2012 23:48:45 +0000 (01:48 +0200)]
remove FEATURE_VI_OPTIMIZE_CURSOR from example config

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agordate: code shrink
Denys Vlasenko [Mon, 11 Jun 2012 12:57:29 +0000 (14:57 +0200)]
rdate: code shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoAdd comments in keyboard escape sequences table
Denys Vlasenko [Mon, 11 Jun 2012 12:40:17 +0000 (14:40 +0200)]
Add comments in keyboard escape sequences table

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovi: save/restore screen upon invocation
Denys Vlasenko [Mon, 11 Jun 2012 11:53:26 +0000 (13:53 +0200)]
vi: save/restore screen upon invocation

function                                             old     new   delta
vi_main                                              253     273     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovi: nuke FEATURE_VI_OPTIMIZE_CURSOR
Denys Vlasenko [Mon, 11 Jun 2012 11:51:38 +0000 (13:51 +0200)]
vi: nuke FEATURE_VI_OPTIMIZE_CURSOR

It is not Unicode safe, it is not saving much of I/O, and it's large:

function                                             old     new   delta
vi_main                                              255     253      -2
go_bottom_and_clear_to_eol                            28      26      -2
do_cmd                                              4194    4182     -12
show_status_line                                     388     374     -14
strncat                                               39       -     -39
__GI_strncat                                          39       -     -39
refresh                                              774     724     -50
place_cursor                                         276      83    -193
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/6 up/down: 0/-351)           Total: -351 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agontpd: on time step, kill all outstanding replies from other peers
Denys Vlasenko [Mon, 11 Jun 2012 09:41:46 +0000 (11:41 +0200)]
ntpd: on time step, kill all outstanding replies from other peers

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotestsuite: some more awk tests related to conditions
Tanguy Pruvot [Mon, 11 Jun 2012 08:33:45 +0000 (10:33 +0200)]
testsuite: some more awk tests related to conditions

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agordate: code shrink
Denys Vlasenko [Mon, 11 Jun 2012 00:06:11 +0000 (02:06 +0200)]
rdate: code shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovi: do not set autoindent by default
Denys Vlasenko [Sun, 10 Jun 2012 23:53:33 +0000 (01:53 +0200)]
vi: do not set autoindent by default

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agolibbb: add missing_syscalls.c: for now, only Android syscalls
Tias Guns [Sun, 10 Jun 2012 12:40:30 +0000 (14:40 +0200)]
libbb: add missing_syscalls.c: for now, only Android syscalls

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoandroid: some sensible defconfig changes
Tias Guns [Sun, 10 Jun 2012 12:29:15 +0000 (14:29 +0200)]
android: some sensible defconfig changes

- no /usr
- no skip rootfs
- use /system/lib/modules

And for niceties:
- show usage
- have installer
- long opts
- verbose cp
- ls --color support
- bbconfig

Also adds lsof (new in 1.20.0)

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoplatform.h: Android tweaks: ioprio defines, BB_ADDITIONAL_PATH
Tias Guns [Sun, 10 Jun 2012 12:26:32 +0000 (14:26 +0200)]
platform.h: Android tweaks: ioprio defines, BB_ADDITIONAL_PATH

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoandroid: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c
Tias Guns [Sun, 3 Jun 2012 14:43:06 +0000 (16:43 +0200)]
android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c

patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)'
https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoinetd: fix build failure in Android
Tias Guns [Sun, 10 Jun 2012 12:19:01 +0000 (14:19 +0200)]
inetd: fix build failure in Android

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agobrctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has strtotimeval)
Denys Vlasenko [Sun, 10 Jun 2012 12:16:16 +0000 (14:16 +0200)]
brctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has strtotimeval)

Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agolpr: don't send 0-byte print jobs (compat)
Denys Vlasenko [Sun, 10 Jun 2012 11:47:17 +0000 (13:47 +0200)]
lpr: don't send 0-byte print jobs (compat)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotar: fix 256-bit encoded number decoding
Etienne Le Sueur [Sat, 9 Jun 2012 06:37:05 +0000 (08:37 +0200)]
tar: fix 256-bit encoded number decoding

Signed-off-by: Etienne Le Sueur <elesueur@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoash: fix a bug in >${varexp} handling. Closes 5282
Denys Vlasenko [Sat, 9 Jun 2012 00:06:57 +0000 (02:06 +0200)]
ash: fix a bug in >${varexp} handling. Closes 5282

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: yet another fix on top of zero length match code
Denys Vlasenko [Fri, 8 Jun 2012 08:25:31 +0000 (10:25 +0200)]
sed: yet another fix on top of zero length match code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoman: fix handling of gzipped manpages
Denys Vlasenko [Fri, 8 Jun 2012 08:22:05 +0000 (10:22 +0200)]
man: fix handling of gzipped manpages

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: fix breakage added by zero length match code
Denys Vlasenko [Thu, 7 Jun 2012 14:34:57 +0000 (16:34 +0200)]
sed: fix breakage added by zero length match code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: code shrink
Denys Vlasenko [Mon, 4 Jun 2012 12:45:09 +0000 (14:45 +0200)]
sed: code shrink

function                                             old     new   delta
process_files                                       2181    2173      -8

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: fix zero chars match/replace
Denys Vlasenko [Mon, 4 Jun 2012 12:44:47 +0000 (14:44 +0200)]
sed: fix zero chars match/replace

function                                             old     new   delta
process_files                                       2099    2181     +82

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoifplugd: tweak help text
Denys Vlasenko [Sun, 3 Jun 2012 08:26:16 +0000 (10:26 +0200)]
ifplugd: tweak help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoudhcpc[6]: show select timeout in log
Denys Vlasenko [Sat, 2 Jun 2012 21:53:53 +0000 (23:53 +0200)]
udhcpc[6]: show select timeout in log

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agounzip: ignore chmod errors
Natanael Copa [Tue, 22 May 2012 15:11:46 +0000 (17:11 +0200)]
unzip: ignore chmod errors

This makes unzip to FAT filesystems not exit with error.
This is similar to how the "normal" unzip works.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotar: support -J, --xz explicit compression option
Boris Reisig [Thu, 24 May 2012 07:01:55 +0000 (09:01 +0200)]
tar: support -J, --xz explicit compression option

function                                             old     new   delta
tar_main                                             868     881     +13
tar_longopts                                         285     290      +5
packed_usage                                       29267   29270      +3

Signed-off-by: Boris Reisig <boris@boris.ca>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agobuild system: fix build failure when only gunzip is selected
Anthony G. Basile [Sun, 20 May 2012 10:56:17 +0000 (12:56 +0200)]
build system: fix build failure when only gunzip is selected

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomdev: tell kernel that we didn't find the firmware
Christoph Lohmann [Sat, 19 May 2012 21:39:45 +0000 (23:39 +0200)]
mdev: tell kernel that we didn't find the firmware

function                                             old     new   delta
mdev_main                                            797     801      +4

Signed-off-by: Christoph Lohmann <20h@r-36.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Sat, 19 May 2012 20:37:07 +0000 (22:37 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

12 years agotar: implement --no-recursion
Natanael Copa [Tue, 24 Apr 2012 15:06:19 +0000 (17:06 +0200)]
tar: implement --no-recursion

function                                             old     new   delta
tar_longopts                                         259     274     +15
.rodata                                             5757    5772     +15
tar_main                                            1038    1052     +14
writeTarFile                                         362     353      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 44/-9)              Total: 35 bytes
   text    data     bss     dec     hex filename
  81457    1706    8344   91507   16573 busybox_old
  81477    1706    8344   91527   16587 busybox_unstripped

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomdev: remove undocumented subsystem/devname matching hack
Denys Vlasenko [Fri, 18 May 2012 13:11:16 +0000 (15:11 +0200)]
mdev: remove undocumented subsystem/devname matching hack

It was colliding with matching of devnames with slashes.
We need a more generic way to examine env.vars in rules anyway.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomdev: when found, print major,minor into mdev.log
Denys Vlasenko [Fri, 18 May 2012 09:39:57 +0000 (11:39 +0200)]
mdev: when found, print major,minor into mdev.log

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotweak help text
Denys Vlasenko [Fri, 18 May 2012 02:47:18 +0000 (04:47 +0200)]
tweak help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomdev: add support for $DEVNAME and /dev/mdev.log debug aid
Denys Vlasenko [Fri, 18 May 2012 02:45:35 +0000 (04:45 +0200)]
mdev: add support for $DEVNAME and /dev/mdev.log debug aid

function                                             old     new   delta
make_device                                         1843    2083    +240
mdev_main                                            712     804     +92
packed_usage                                       29236   29251     +15
keywords                                             288      19    -269
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 347/-269)           Total: 78 bytes
   text    data     bss     dec     hex filename
 887506     497    7584  895587   daa63 busybox_old
 887982     497    7584  896063   dac3f busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agotypo fix in comment
Denys Vlasenko [Fri, 18 May 2012 00:53:11 +0000 (02:53 +0200)]
typo fix in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agovolume_id/ext: detect ext4 too
Denys Vlasenko [Fri, 18 May 2012 00:51:27 +0000 (02:51 +0200)]
volume_id/ext: detect ext4 too

function                                             old     new   delta
volume_id_probe_ext                                  108     132     +24

Signed-off-by: Dees Troy<dees_troy@teamw.in>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agofind: if DESKTOP=y, support -wholename (synonym for -path)
Denys Vlasenko [Thu, 17 May 2012 10:25:25 +0000 (12:25 +0200)]
find: if DESKTOP=y, support -wholename (synonym for -path)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoexamples/mdev_fat.conf: small addition
Denys Vlasenko [Wed, 16 May 2012 01:03:54 +0000 (03:03 +0200)]
examples/mdev_fat.conf: small addition

I needed this to make Android's adb see my phone

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agobusybox: tweak help text and copyright year
Denys Vlasenko [Mon, 14 May 2012 21:52:57 +0000 (23:52 +0200)]
busybox: tweak help text and copyright year

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agofix for spurious testsuite failure
Denys Vlasenko [Thu, 10 May 2012 17:26:37 +0000 (19:26 +0200)]
fix for spurious testsuite failure

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomv: accept but ignore -v
Simon B [Sun, 6 May 2012 16:08:24 +0000 (18:08 +0200)]
mv: accept but ignore -v

function                                             old     new   delta
mv_longopts                                           36      46     +10

Signed-off-by: Simon B <sburnet@hotmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agomkdir,rmdir: accept and ignore -v, --verbose
Simon B [Sun, 6 May 2012 13:03:32 +0000 (15:03 +0200)]
mkdir,rmdir: accept and ignore -v, --verbose

function                                             old     new   delta
static.rmdir_longopts                                 38      48     +10
mkdir_longopts                                        18      28     +10

Signed-off-by: Simon B <sburnet@hotmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agosed: support long opts and -iSFX
Simon B [Sun, 6 May 2012 11:59:15 +0000 (13:59 +0200)]
sed: support long opts and -iSFX

function                                             old     new   delta
static.sed_longopts                                    -      67     +67
sed_main                                             618     682     +64
packed_usage                                       29179   29236     +57
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 188/0)             Total: 188 bytes

Signed-off-by: Simon B <sburnet@hotmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 years agoln: support -T and -v
Simon B [Sun, 6 May 2012 11:18:35 +0000 (13:18 +0200)]
ln: support -T and -v

function                                             old     new   delta
ln_main                                              445     524     +79
packed_usage                                       29182   29179      -3

Signed-off-by: Simon B <sburnet@hotmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>