oweals/busybox.git
13 years agoadd ENABLE_FEATURE_SYSTEMD and use it in syslogd
Davide Cavalca [Tue, 25 Jan 2011 01:26:03 +0000 (02:26 +0100)]
add ENABLE_FEATURE_SYSTEMD and use it in syslogd

Signed-off-by: Davide Cavalca <davide@geexbox.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotop: document a debugging script
Denys Vlasenko [Tue, 25 Jan 2011 00:57:31 +0000 (01:57 +0100)]
top: document a debugging script

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agonicer looking ifdef in libbb/makedev.c
Denys Vlasenko [Mon, 24 Jan 2011 22:53:12 +0000 (23:53 +0100)]
nicer looking ifdef in libbb/makedev.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: flush _only_ input after switching to the next baud rate
Denys Vlasenko [Mon, 24 Jan 2011 22:45:22 +0000 (23:45 +0100)]
getty: flush _only_ input after switching to the next baud rate

It was originally like this, but at some point TCIFLUSH was
inadvertently changed to TCIOFLUSH.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agostty: enable line discipline display and change code if __linix__
Denys Vlasenko [Mon, 24 Jan 2011 17:30:35 +0000 (18:30 +0100)]
stty: enable line discipline display and change code if __linix__

function                                             old     new   delta
stty_main                                           1242    1276     +34
do_display                                           419     431     +12
display_speed                                         90      81      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 46/-9)              Total: 37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: simplify macros; improve VSWTC[H] compat
Denys Vlasenko [Mon, 24 Jan 2011 17:17:19 +0000 (18:17 +0100)]
getty: simplify macros; improve VSWTC[H] compat

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoFreeBSD compat for match_fstype
Chris Rees [Mon, 24 Jan 2011 16:10:02 +0000 (17:10 +0100)]
FreeBSD compat for match_fstype

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoFreeBSD compat for makedev
Chris Rees [Mon, 24 Jan 2011 16:07:40 +0000 (17:07 +0100)]
FreeBSD compat for makedev

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoFreeBSD compat
Chris Rees [Mon, 24 Jan 2011 16:07:06 +0000 (17:07 +0100)]
FreeBSD compat

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoFreeBSD compat
Chris Rees [Mon, 24 Jan 2011 16:03:36 +0000 (17:03 +0100)]
FreeBSD compat

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agostty: make swtch and iutf8 visible/settable
Denys Vlasenko [Mon, 24 Jan 2011 15:36:15 +0000 (16:36 +0100)]
stty: make swtch and iutf8 visible/settable

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: more simplifications; explain how we treat parity now
Denys Vlasenko [Mon, 24 Jan 2011 13:35:09 +0000 (14:35 +0100)]
getty: more simplifications; explain how we treat parity now

function                                             old     new   delta
getty_main                                          1471    1434     -37

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: simplify code by going to more straignforward G trick
Denys Vlasenko [Mon, 24 Jan 2011 03:43:04 +0000 (04:43 +0100)]
getty: simplify code by going to more straignforward G trick

function                                             old     new   delta
getty_main                                          1615    1475    -140

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb: make ndelay_no/off a bit more clever. +14 bytes
Denys Vlasenko [Sun, 23 Jan 2011 23:29:55 +0000 (00:29 +0100)]
libbb: make ndelay_no/off a bit more clever. +14 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1s
Denys Vlasenko [Sun, 23 Jan 2011 23:28:43 +0000 (00:28 +0100)]
getty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1s

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: use cfsetspeed to save some bytes; cosmetic fixes
Denys Vlasenko [Sun, 23 Jan 2011 23:16:50 +0000 (00:16 +0100)]
getty: use cfsetspeed to save some bytes; cosmetic fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohwclock: implement --systz
Davide Cavalca [Sat, 22 Jan 2011 17:55:32 +0000 (18:55 +0100)]
hwclock: implement --systz

function                                             old     new   delta
hwclock_main                                         324     434    +110
packed_usage                                       28220   28259     +39
static.hwclock_longopts                               53      60      +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 156/0)             Total: 156 bytes

Signed-off-by: Davide Cavalca <davide@geexbox.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agowc: fix swapped -c and -m
Denys Vlasenko [Sat, 22 Jan 2011 16:57:01 +0000 (17:57 +0100)]
wc: fix swapped -c and -m

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopltaform.h: move include of stdint.h before uint16_t is used
Denys Vlasenko [Sat, 22 Jan 2011 16:31:35 +0000 (17:31 +0100)]
pltaform.h: move include of stdint.h before uint16_t is used

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: more correct check for O_RDWR
Denys Vlasenko [Sat, 22 Jan 2011 16:29:53 +0000 (17:29 +0100)]
getty: more correct check for O_RDWR

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: comment out parity detection code; improve usage text
Denys Vlasenko [Sat, 22 Jan 2011 02:06:40 +0000 (03:06 +0100)]
getty: comment out parity detection code; improve usage text

function                                             old     new   delta
packed_usage                                       28155   28191     +36
static.erase                                          12       -     -12
getty_main                                          1847    1621    -226
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 36/-238)          Total: -202 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agosvlogd: extend usage text. +70 bytes
Denys Vlasenko [Fri, 21 Jan 2011 23:38:24 +0000 (00:38 +0100)]
svlogd: extend usage text. +70 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Fri, 21 Jan 2011 20:59:26 +0000 (21:59 +0100)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

13 years agofix compile error on non-x86 architectures
Denys Vlasenko [Fri, 21 Jan 2011 00:16:09 +0000 (01:16 +0100)]
fix compile error on non-x86 architectures

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoeliminate aliasing warnings in traceroute.c and udhcp/socket.c
Denys Vlasenko [Thu, 20 Jan 2011 11:13:23 +0000 (12:13 +0100)]
eliminate aliasing warnings in traceroute.c and udhcp/socket.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoeliminate aliasing warning in networking/route.c
Denys Vlasenko [Thu, 20 Jan 2011 10:29:00 +0000 (11:29 +0100)]
eliminate aliasing warning in networking/route.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoifplugd: eliminate aliasing warnings
Denys Vlasenko [Thu, 20 Jan 2011 00:20:36 +0000 (01:20 +0100)]
ifplugd: eliminate aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agosighandler_t definition for BSD
Chris Rees [Wed, 19 Jan 2011 23:51:52 +0000 (00:51 +0100)]
sighandler_t definition for BSD

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: improve prompt in nested {}s, remove unused in_str->promptme member
Denys Vlasenko [Tue, 18 Jan 2011 16:55:04 +0000 (17:55 +0100)]
hush: improve prompt in nested {}s, remove unused in_str->promptme member

function                                             old     new   delta
setup_string_in_str                                   29      38      +9
parse_and_run_stream                                  79      88      +9
setup_file_in_str                                     32      39      +7
parse_stream                                        2430    2422      -8
file_get                                             262     235     -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 25/-35)            Total: -10 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix "cmd & <newline>" problem
Denys Vlasenko [Tue, 18 Jan 2011 16:30:07 +0000 (17:30 +0100)]
hush: fix "cmd & <newline>" problem

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
Denys Vlasenko [Tue, 18 Jan 2011 12:58:01 +0000 (13:58 +0100)]
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodisable automatic selection of FEATURE_SUID; improve its help text
Denys Vlasenko [Tue, 18 Jan 2011 12:52:48 +0000 (13:52 +0100)]
disable automatic selection of FEATURE_SUID; improve its help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoinsmod: check for module read errors
Denys Vlasenko [Mon, 17 Jan 2011 13:58:27 +0000 (14:58 +0100)]
insmod: check for module read errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb: better comment in parse_date
Denys Vlasenko [Mon, 17 Jan 2011 13:23:42 +0000 (14:23 +0100)]
libbb: better comment in parse_date

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomove passwd, shadow, group and gshadow path definitions to libbb.h
Tito Ragusa [Sun, 16 Jan 2011 22:39:45 +0000 (23:39 +0100)]
move passwd, shadow, group and gshadow path definitions to libbb.h

...and define them only if the used libc doesn't.

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoremove a few aliasing warnings
Denys Vlasenko [Sun, 16 Jan 2011 10:21:15 +0000 (11:21 +0100)]
remove a few aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoremove a few aliasing warnings
Denys Vlasenko [Sun, 16 Jan 2011 00:25:34 +0000 (01:25 +0100)]
remove a few aliasing warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotop: add keyboard commands to --help
Denys Vlasenko [Thu, 13 Jan 2011 15:07:51 +0000 (16:07 +0100)]
top: add keyboard commands to --help

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agohttpd: send correct mtime for .gz files
Denys Vlasenko [Tue, 11 Jan 2011 16:59:45 +0000 (17:59 +0100)]
httpd: send correct mtime for .gz files

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agolibbb unicode: comment out usused function and unused parameter
Denys Vlasenko [Tue, 11 Jan 2011 12:08:28 +0000 (13:08 +0100)]
libbb unicode: comment out usused function and unused parameter

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agolsmod: fox unsafe usage of strlen() - 1
Denys Vlasenko [Tue, 11 Jan 2011 12:07:22 +0000 (13:07 +0100)]
lsmod: fox unsafe usage of strlen() - 1

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agolibbb: progress indicator: use unicode support funcs instead of open-coding it
Denys Vlasenko [Mon, 10 Jan 2011 15:10:29 +0000 (16:10 +0100)]
libbb: progress indicator: use unicode support funcs instead of open-coding it

function                                             old     new   delta
bb_progress_update                                   729     641     -88

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agotftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061
Denys Vlasenko [Mon, 10 Jan 2011 11:51:44 +0000 (12:51 +0100)]
tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061

This was breaking timeout handling.

function                                             old     new   delta
tftp_progress_update                                   -      45     +45
tftp_progress_done                                     -      32     +32
tftp_protocol                                       1839    1858     +19
tftp_progress_init                                     9      15      +6
tftp_main                                            298     286     -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12)            Total: 90 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agostop giving root rights to dnsd, ipcrm, ipcs
Denys Vlasenko [Sun, 9 Jan 2011 20:54:50 +0000 (21:54 +0100)]
stop giving root rights to dnsd, ipcrm, ipcs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogetty: fix -i (was ignored)
Denys Vlasenko [Sun, 9 Jan 2011 20:44:51 +0000 (21:44 +0100)]
getty: fix -i (was ignored)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomodprobe-small: support compressed modules in insmod
Denys Vlasenko [Sun, 9 Jan 2011 19:57:52 +0000 (20:57 +0100)]
modprobe-small: support compressed modules in insmod

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix wrong prompt problem on empty interactive commants
Denys Vlasenko [Fri, 7 Jan 2011 14:16:05 +0000 (15:16 +0100)]
hush: fix wrong prompt problem on empty interactive commants

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosuppress "'fast_strtol_10' defined but not used" warning
Denys Vlasenko [Fri, 7 Jan 2011 12:51:16 +0000 (13:51 +0100)]
suppress "'fast_strtol_10' defined but not used" warning

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomkswap: selinux build fix
Denys Vlasenko [Wed, 5 Jan 2011 10:45:44 +0000 (11:45 +0100)]
mkswap: selinux build fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agotar: add a note about -C and symlink-in-tarball attack
Denys Vlasenko [Tue, 4 Jan 2011 07:46:26 +0000 (08:46 +0100)]
tar: add a note about -C and symlink-in-tarball attack

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoexplain every non-SUID_DROP applet. No code changes
Denys Vlasenko [Mon, 3 Jan 2011 12:57:49 +0000 (13:57 +0100)]
explain every non-SUID_DROP applet. No code changes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agokill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX
Denys Vlasenko [Mon, 3 Jan 2011 12:08:58 +0000 (13:08 +0100)]
kill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAX

function                                             old     new   delta
print_signames                                        31      64     +33
signals                                              224     231      +7

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agokill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code
Denys Vlasenko [Mon, 3 Jan 2011 11:51:13 +0000 (12:51 +0100)]
kill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX code

function                                             old     new   delta
__libc_current_sigrtmin                                6       -      -6
__libc_current_sigrtmax                                6       -      -6
get_signum                                           339     295     -44
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-56)             Total: -56 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agodate,touch: treat 2-digit years better (fit them into +-50 yrs around today)
Denys Vlasenko [Sun, 2 Jan 2011 19:02:09 +0000 (20:02 +0100)]
date,touch: treat 2-digit years better (fit them into +-50 yrs around today)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate: preserve isdst value if date is in time_t (unix time) format
Alexey Soloviev [Fri, 31 Dec 2010 04:21:51 +0000 (05:21 +0100)]
date: preserve isdst value if date is in time_t (unix time) format

Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agosu: document -l in --help text. Closes bug 2761
Denys Vlasenko [Fri, 31 Dec 2010 01:52:35 +0000 (02:52 +0100)]
su: document -l in --help text. Closes bug 2761

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd missed underscore
Denys Vlasenko [Thu, 30 Dec 2010 23:01:59 +0000 (00:01 +0100)]
add missed underscore

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate: add a comment about _SVID_SOURCE
Denys Vlasenko [Thu, 30 Dec 2010 22:56:47 +0000 (23:56 +0100)]
date: add a comment about _SVID_SOURCE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobzip2: plug memory leak on every processed file
Denys Vlasenko [Thu, 30 Dec 2010 03:43:35 +0000 (04:43 +0100)]
bzip2: plug memory leak on every processed file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb: optionally support RTMIN[+n] and RTMAX[-n] signal names
Denys Vlasenko [Thu, 30 Dec 2010 00:17:03 +0000 (01:17 +0100)]
libbb: optionally support RTMIN[+n] and RTMAX[-n] signal names

function                                             old     new   delta
get_signum                                           140     336    +196
__libc_allocate_rtsig                                  -      56     +56
__libc_current_sigrtmin                                -       6      +6
__libc_current_sigrtmax                                -       6      +6
current_rtmin                                          -       4      +4
current_rtmax                                          -       4      +4
bbconfig_config_bz2                                 4961    4962      +1
------------------------------------------------------------------------------
(add/remove: 6/0 grow/shrink: 2/0 up/down: 273/0)             Total: 273 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoblkid: optional support for TYPE="fstype"
Denys Vlasenko [Wed, 29 Dec 2010 23:40:11 +0000 (00:40 +0100)]
blkid: optional support for TYPE="fstype"

Adapted from patch created by T4ndeta <t4ndeta@gmail.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoplug a DIR* leak on error path
Denys Vlasenko [Tue, 28 Dec 2010 09:25:03 +0000 (10:25 +0100)]
plug a DIR* leak on error path

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomodprobe: add -D option (synonym of --show-depends)
Serj Kalichev [Tue, 28 Dec 2010 03:18:18 +0000 (04:18 +0100)]
modprobe: add -D option (synonym of --show-depends)

The modern module-init-tools 3.12 has "-D" option and it works.

The --show-depends and -a options can be used together due to upstream modprobe
behaviour.

function                                             old     new   delta
do_modprobe                                          536     579     +43
packed_usage                                       28035   28042      +7
modprobe_main                                        653     657      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 54/0)               Total: 54 bytes

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agologin: apply PAM environment
Ian Wienand [Mon, 20 Dec 2010 19:33:38 +0000 (11:33 -0800)]
login: apply PAM environment

login should apply the PAM environment modified by plugins
such as pam_env.  Other 'login's do a similar thing.

I tested this by setting some env variables with pam_env which were
correctly applied.

Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agocpio: allow cpio -i to take params - names of files to extract
Denys Vlasenko [Sun, 26 Dec 2010 01:22:51 +0000 (02:22 +0100)]
cpio: allow cpio -i to take params - names of files to extract

Also, improve help text

function                                             old     new   delta
packed_usage                                       28028   28035      +7
cpio_main                                            542     532     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-10)              Total: -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agomodprobe: add support for --show-depends
Serj Kalichev [Sun, 26 Dec 2010 00:56:19 +0000 (01:56 +0100)]
modprobe: add support for --show-depends

function                                             old     new   delta
modprobe_longopts                                      -      16     +16
packed_usage                                       28018   28028     +10
modprobe_main                                        648     653      +5
do_modprobe                                          580     536     -44
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 31/-44)            Total: -13 bytes

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoinit: simpler handling of leading dash in commands
Denys Vlasenko [Sat, 25 Dec 2010 22:58:42 +0000 (23:58 +0100)]
init: simpler handling of leading dash in commands

function                                             old     new   delta
init_exec                                            233     219     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoudhcpc: document SIGUSRn effect in help text
Denys Vlasenko [Sat, 25 Dec 2010 05:21:54 +0000 (06:21 +0100)]
udhcpc: document SIGUSRn effect in help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)
Denys Vlasenko [Tue, 21 Dec 2010 20:18:12 +0000 (21:18 +0100)]
hush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosendmail: remove forgotten commenting-out on a "if (verbose)"
Denys Vlasenko [Mon, 20 Dec 2010 11:19:46 +0000 (12:19 +0100)]
sendmail: remove forgotten commenting-out on a "if (verbose)"

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomailutils/*: add verbose option to sendmail; remove -m and -j from makemime
Denys Vlasenko [Mon, 20 Dec 2010 04:12:39 +0000 (05:12 +0100)]
mailutils/*: add verbose option to sendmail; remove -m and -j from makemime

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotest: add examples when "%s: unknown operand" happens
Denys Vlasenko [Mon, 20 Dec 2010 02:43:20 +0000 (03:43 +0100)]
test: add examples when "%s: unknown operand" happens

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: remove redundant constants LIST_FILENAME and LIST_SHORT
James Youngman [Mon, 20 Dec 2010 00:36:16 +0000 (01:36 +0100)]
ls: remove redundant constants LIST_FILENAME and LIST_SHORT

LIST_FILENAME is always true and LIST_SHORT affects nothing.

Signed-off-by: James Youngman <jay@gnu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: add support for -H
Denys Vlasenko [Sun, 19 Dec 2010 20:54:39 +0000 (21:54 +0100)]
ls: add support for -H

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agovolume_id: recognize compressed hibernate swap signature
James Hunt [Thu, 16 Dec 2010 12:22:38 +0000 (12:22 +0000)]
volume_id: recognize compressed hibernate swap signature

util-linux/volume_id/linux_swap.c: Added the new magic LINHIB0001
signature.

See:

https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: tweak -e handling; better comments
Denys Vlasenko [Sun, 19 Dec 2010 15:29:08 +0000 (16:29 +0100)]
ls: tweak -e handling; better comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: print a space after each column. Closes bug 2941
Denys Vlasenko [Sun, 19 Dec 2010 06:06:44 +0000 (07:06 +0100)]
ls: print a space after each column. Closes bug 2941

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: make -F not follow symlinks of the command line
Denys Vlasenko [Sun, 19 Dec 2010 05:16:28 +0000 (06:16 +0100)]
ls: make -F not follow symlinks of the command line

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: make -x force columnar output; remove unused parts of TRIGGER code
Denys Vlasenko [Sun, 19 Dec 2010 04:43:44 +0000 (05:43 +0100)]
ls: make -x force columnar output; remove unused parts of TRIGGER code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agols: for some options, only last takes effect. Closes bug 2959
Denys Vlasenko [Sun, 19 Dec 2010 04:05:34 +0000 (05:05 +0100)]
ls: for some options, only last takes effect. Closes bug 2959

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochrt: -m can be used without any arguments. Closes bug 2989
Denys Vlasenko [Sun, 19 Dec 2010 03:07:50 +0000 (04:07 +0100)]
chrt: -m can be used without any arguments. Closes bug 2989

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochrt: correct opt_complementary. Closes bug 2977
Denys Vlasenko [Sat, 18 Dec 2010 01:59:09 +0000 (02:59 +0100)]
chrt: correct opt_complementary. Closes bug 2977

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoscripts: fix fixdep.c to let it workable in cygwin
Macpaul Lin [Fri, 17 Dec 2010 03:44:32 +0000 (11:44 +0800)]
scripts: fix fixdep.c to let it workable in cygwin

Update retrun character detection in the fixdep.c
to let it work in cygwin.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Greentime <green.hu@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoRevert "scripts: fix fixdep.c to let it workable in cygwin"
Denys Vlasenko [Sat, 18 Dec 2010 00:46:04 +0000 (01:46 +0100)]
Revert "scripts: fix fixdep.c to let it workable in cygwin"

This reverts commit 10c36b86574133bb1cd29ad04db64c7953b94ab5.

13 years agoscripts: fix fixdep.c to let it workable in cygwin
Greentime [Fri, 17 Dec 2010 03:44:32 +0000 (11:44 +0800)]
scripts: fix fixdep.c to let it workable in cygwin

Update return character detection in the fixdep.c
to let it workable in cygwin.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Greentime <green.hu@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agochat: fix build breakage (variable declared in for())
Denys Vlasenko [Sat, 18 Dec 2010 00:42:50 +0000 (01:42 +0100)]
chat: fix build breakage (variable declared in for())

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: fix build breakage (variable declared in for())
Denys Vlasenko [Sat, 18 Dec 2010 00:34:49 +0000 (01:34 +0100)]
hush: fix build breakage (variable declared in for())

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agonmeter: deprecate %NNNd specified, use -d MSEC instead
Denys Vlasenko [Mon, 13 Dec 2010 14:17:22 +0000 (15:17 +0100)]
nmeter: deprecate %NNNd specified, use -d MSEC instead

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoprocps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit
Lauri Kasanen [Wed, 8 Dec 2010 17:00:26 +0000 (19:00 +0200)]
procps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: smaller version of previous fix
Denys Vlasenko [Mon, 13 Dec 2010 13:31:59 +0000 (14:31 +0100)]
more: smaller version of previous fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: exit if write to stdout errors out
Denys Vlasenko [Mon, 13 Dec 2010 13:28:38 +0000 (14:28 +0100)]
more: exit if write to stdout errors out

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agofix typo in README
Denys Vlasenko [Wed, 8 Dec 2010 05:08:47 +0000 (06:08 +0100)]
fix typo in README

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotypo fix
Denys Vlasenko [Mon, 6 Dec 2010 14:44:13 +0000 (15:44 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoupdate examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:42:44 +0000 (15:42 +0100)]
update examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoadd examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:13:58 +0000 (15:13 +0100)]
add examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agopstree: use stdin for screen size detection
Denys Vlasenko [Mon, 6 Dec 2010 11:54:24 +0000 (12:54 +0100)]
pstree: use stdin for screen size detection

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agorunsvdir: do not miss closely spaced service dir changes
Eric Lammerts [Mon, 6 Dec 2010 00:26:26 +0000 (01:26 +0100)]
runsvdir: do not miss closely spaced service dir changes

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotweak INSTALL_NO_USR help text
Denys Vlasenko [Sun, 5 Dec 2010 22:11:15 +0000 (23:11 +0100)]
tweak INSTALL_NO_USR help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: fix "make install" to skip /usr when configured so
Joachim Nilsson [Sun, 5 Dec 2010 22:05:38 +0000 (23:05 +0100)]
build system: fix "make install" to skip /usr when configured so

Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install".  The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.

Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: another tiny shrink
Denys Vlasenko [Sun, 5 Dec 2010 18:36:58 +0000 (19:36 +0100)]
pstree: another tiny shrink

function                                             old     new   delta
pstree_main                                          327     324      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>