Denys Vlasenko
2bfe7838ab
setpriv: factor out capability name printing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-07 16:09:45 +02:00
Denys Vlasenko
cf5748cc89
setpriv: code shrink, and grouping capability code together
...
function old new delta
static.versions - 3 +3
getcaps 174 149 -25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-07 16:00:07 +02:00
Denys Vlasenko
111cdcf295
shell: sync redir/* tests
...
Note: hush-redir/redir_to_bad_fd.tests currently fails
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 21:01:50 +02:00
Denys Vlasenko
1ff1a75710
ash: rename redir5.tests (hush has redir5.tests which is different)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 21:00:19 +02:00
Denys Vlasenko
50b8b2914b
hush: add a TODO about redir3.tests failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 20:57:37 +02:00
Denys Vlasenko
a107ef2a6a
hush: rename hush-redir/redir3.tests (ash has redir3.tests which id different)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 20:36:40 +02:00
Denys Vlasenko
e59591a364
hush: Print error messages on shift -1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 20:12:44 +02:00
Denys Vlasenko
74d20e6379
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 19:50:42 +02:00
Denys Vlasenko
5dad7bdc3b
hush: implement negative start in the ${v: -n[:m]} idiom
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 19:48:20 +02:00
Denys Vlasenko
3234045d07
hush: "adopt" ash var-utf8-length.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 19:29:23 +02:00
Denys Vlasenko
7456298472
hush: "adopt" ash signal4.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 18:40:45 +02:00
Denys Vlasenko
b18b04c8a8
shell: remove duplicate sigint1.tests (another copies are in signals/)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 18:37:30 +02:00
Denys Vlasenko
cafb2d195d
hush: add tickquote1.tests from ash testsuite
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 18:31:47 +02:00
Denys Vlasenko
bb963bda62
shell: syncronize ash and hush heredoc3.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 18:19:35 +02:00
Denys Vlasenko
959cb67428
shell: syncronize ash and hush heredoc1.tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 18:16:18 +02:00
Denys Vlasenko
9a8ece5158
shell: syncronize ash_test/run-all and hush_test/run-all a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 17:59:25 +02:00
Denys Vlasenko
3c9688e587
makedevs: code shrink
...
function old new delta
makedevs_main 1071 1052 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 02:17:24 +02:00
Denys Vlasenko
3532e60ca8
makedevs: allow much longer filenames
...
function old new delta
makedevs_main 1056 1071 +15
Patch by Kang-Che Sung <explorer09@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 02:04:32 +02:00
Denys Vlasenko
637982f5bb
hush: correctly handle quoting in "case" even if !BASH_PATTERN_SUBST
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-06 01:52:23 +02:00
Denys Vlasenko
bd43c6784f
hush: fix quoted_punct.tests failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-05 23:12:15 +02:00
Denys Vlasenko
4142f0187d
ash: fix escaping of a few characters (broken by last commits)
...
Add a testcase which tests all ASCII punctuation escapes.
NB: hush is failing this test!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-05 22:19:28 +02:00
Denys Vlasenko
ed79a63623
ash: tweak in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-05 19:20:43 +02:00
Denys Vlasenko
92b8d9c9fa
ash: note which versions of glibc exhibit "rho bug"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-05 19:13:44 +02:00
Denys Vlasenko
fda9fafe27
ash: fix matching of unicode greek letter rho (cf 81) and similar cases
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-05 19:10:21 +02:00
Denys Vlasenko
6798486141
setpriv: dump user and group info
...
setpriv from util-linux has an option to dump the current state
regarding privilege settings via '--dump'. It prints out information on
the real and effective user and group IDs, supplementary groups, the
no-new-privs flag, the capability sets as well as secure bits.
This patch is the start of supporting this mode. To make introduction of
the '--dump' easier to reason about, its introduction has been split
into multiple patches. This particular one introduces the ability to
print out user and group information of the current process.
function old new delta
setpriv_main 89 322 +233
getresuid - 41 +41
getresgid - 41 +41
static.setpriv_longopts 22 29 +7
packed_usage 31675 31669 -6
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 2/1 up/down: 322/-6) Total: 316 bytes
Patch by Patrick Steinhardt <ps@pks.im >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-04 18:59:11 +02:00
Denys Vlasenko
a8cf9c5a3f
libbb: new function bb_getgroups() - allocating wrapper around getgroups()
...
function old new delta
bb_getgroups - 111 +111
nexpr 843 757 -86
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 111/-86) Total: 25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-04 18:56:45 +02:00
Denys Vlasenko
558aae1a33
tls: use capped SNI len everywhere
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-04 16:52:45 +02:00
Denys Vlasenko
034ceabe82
bzcat: compile bunzip2_main() if BZCAT.
...
Currently, BZCAT (and BUNZIP2) selects FEATURE_BZIP2_DECOMPRESS,
thus, "#if ENABLE_FEATURE_BZIP2_DECOMPRESS" around bunzip2_main()
is sufficient. But let's robustify it.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-04 16:23:36 +02:00
Denys Vlasenko
d1f222c3b0
Change BB_EXTRA_VERSION: now it needs to contain any spaces/parenthesis
...
Before this change, BB_EXTRA_VERSION of "" resulted in:
"BusyBox v1.28.0.git () multi-call binary"
message, after the fix it is:
"BusyBox v1.28.0.git multi-call binary"
While at it, eliminate BB_BT and BANNER single-use macros.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-04 16:01:12 +02:00
Denys Vlasenko
d4e4fdb5ce
fixes for bugs found by make_single_applets.sh
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 21:31:16 +02:00
Denys Vlasenko
2e989ef232
msh: delete this applet
...
It's deprecated since 2009 and interferes with make_single_applets.sh tests.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 16:56:37 +02:00
Denys Vlasenko
f82be93c1c
Start 1.28.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 13:41:18 +02:00
Denys Vlasenko
ceaffde511
Bump version to 1.27.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 13:40:46 +02:00
Denys Vlasenko
7fdb764e2e
scripts/randomtest: update things which can't be tested on uclibc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 02:33:08 +02:00
Denys Vlasenko
4ee824f6ba
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-03 01:22:13 +02:00
Denys Vlasenko
48c803a206
ash: fix $HOME/.profile reading if !ASH_EXPAND_PRMT, take 2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-01 23:26:12 +02:00
Denys Vlasenko
e9aba3e7ea
ash: fix 'trap - 65'
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-07-01 21:09:27 +02:00
Denys Vlasenko
ba4fbca8a8
udhcpc6: make -O OPT work
...
Patch is based on work by tiggerswelt.net.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-28 19:18:17 +02:00
Denys Vlasenko
ae2b9f286c
modutils: delete unused replace_underscores()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-28 19:10:29 +02:00
Denys Vlasenko
470bebe672
udhcpc6: add comments about option 39, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-27 18:31:08 +02:00
Denys Vlasenko
f56ddf2e4c
ash: fix $HOME/.profile reading if !ASH_EXPAND_PRMT
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-27 17:51:07 +02:00
Denys Vlasenko
9f4b4226a4
pgrep: implement -a
...
function old new delta
pgrep_main 640 726 +86
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-26 21:10:47 +02:00
Denys Vlasenko
234b82ca19
udhcpc6: add support for timezones
...
Basedon patch by Bernd Holzmüller <bernd.holzmueller@tiggerswelt.net >
function old new delta
option_to_env 504 580 +76
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-26 19:42:48 +02:00
Denys Vlasenko
4add757929
pgrep: fix pgrep -flx "sleep 11" - saw "sleep 11" processes as "sleep 11 "
...
function old new delta
pgrep_main 584 597 +13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-26 14:41:53 +02:00
Denys Vlasenko
1c013fae28
archival: add option -k "keep" to gzip/bzip2/lzop, add -U "nokeep" to lzop
...
function old new delta
bbunpack 745 779 +34
lzop_main 93 121 +28
do_lzo_compress 320 328 +8
packed_usage 31685 31653 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 70/-32) Total: 38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-15 18:07:04 +02:00
Denys Vlasenko
5d72ae53c9
fix "ifdef ENABLE_foo": should always be "#if ENABLE_foo"
...
function old new delta
pack_gzip 1729 1789 +60
fill_window 220 216 -4
static.gzip_level_config 24 - -24
gzip_main 275 192 -83
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 60/-111) Total: -51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-15 17:11:59 +02:00
Denys Vlasenko
45100b8d07
unshare: fix help text; select LONG_OPTS instead depending on them
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-06-14 16:20:02 +02:00
Denys Vlasenko
13d72c3fd9
add/remove-shell: copy /etc/shells mode to new file
...
function old new delta
add_remove_shell_main 259 300 +41
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-26 16:45:28 +02:00
Denys Vlasenko
f547041940
ash,hush: fix SIGCHLD interrupting read builtin
...
function old new delta
readcmd 169 217 +48
shell_builtin_read 1087 1097 +10
localcmd 366 364 -2
builtin_read 197 193 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 58/-6) Total: 52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-22 19:34:45 +02:00
Denys Vlasenko
bcb5764822
runsv: update to match version 2.1.2 of runit
...
Backport from upstream versions:
2.1.0
Thu, 24 Sep 2009 22:49:33 +0000
* runsv.c: exit with error if [log/]supervise/control exists, but is
not a fifo.
[Code abstracted into a separate function to make it more compact
for BusyBox.]
1.9.0
Mon, 05 May 2008 22:00:13 +0000
* runsv.c: create temporary new status files for log/supervise/
actually in log/supervise/.
1.7.2
Tue, 21 Nov 2006 15:13:47 +0000
* runsv.c: really don't act on commands in state finish; minor.
function old new delta
open_control - 135 +135
update_status 553 612 +59
custom 223 242 +19
ctrl 426 422 -4
warn_cannot 21 10 -11
runsv_main 1786 1662 -124
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/3 up/down: 213/-139) Total: 74 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-15 19:44:48 +02:00
Denys Vlasenko
79c0d7332a
svlogd.c: support -ttt (dateTtime instead of date_time)
...
Backport from upstream version:
1.7.0
Sat, 07 Oct 2006 18:24:17 +0000
* svlogd.c: new option -ttt: prefix log messages with sortable UTC
timestamp YYYY-MM-DDTHH:MM:SS.xxxxx.
function old new delta
svlogd_main 1429 1454 +25
packed_usage 31575 31580 +5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-15 19:12:09 +02:00
Denys Vlasenko
ed820ccda1
udhcpc: do not accept --background on NOMMU (same as -b)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-08 15:11:02 +02:00
Denys Vlasenko
741bfa9a72
udhcpc: fix "udhcpc -x hostname:<name> not working on nommu"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-08 15:02:07 +02:00
Denys Vlasenko
c5d16e92c1
diff: fix -N and nonexistent files. Closes 7454
...
function old new delta
diffreg 1253 1310 +57
diff_main 1329 1355 +26
create_J 1819 1821 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 85/0) Total: 85 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-05 18:39:22 +02:00
Denys Vlasenko
0cc9b1843d
vi: survive if stdin is nonblocking. closes 9851
...
function old new delta
readit 55 69 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-05-02 20:39:02 +02:00
Denys Vlasenko
a1a3b595e1
time: inplement -f FMT
...
function old new delta
time_main 1076 1134 +58
packed_usage 31577 31572 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-28 18:01:18 +02:00
Denys Vlasenko
10ad622dc2
Spelling fixes in comments, documentation, tests and examples
...
By klemens <ka7@github.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-17 16:13:32 +02:00
Denys Vlasenko
d85352b4ff
factor: fix stray semicolon
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-17 15:57:07 +02:00
Denys Vlasenko
8352b717ce
factor: support "no-argvs" usage
...
function old new delta
factorize_numstr - 72 +72
packed_usage 31562 31566 +4
factor_main 109 101 -8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 76/-8) Total: 68 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-14 14:23:49 +02:00
Denys Vlasenko
44c0ab4102
libbb: fix "error: redefinition of 'is_tty_secure'"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 17:55:05 +02:00
Denys Vlasenko
107159ef1c
factor: improve comments for sieving logic... also fix a typo
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 13:38:16 +02:00
Denys Vlasenko
933dcf1c8a
fix "loginutils/Config.in:319 error: Overlong line"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 13:37:05 +02:00
Denys Vlasenko
021d50405b
factor: improve comments for sieving logic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 13:34:40 +02:00
Denys Vlasenko
a3de0b3b86
libbb: make check_password() also return CHECKPASS_PW_HAS_EMPTY_PASSWORD
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 13:04:05 +02:00
Denys Vlasenko
335681ca8e
su: FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
...
When this feature is enabled, blank passwords are not accepted by su
unless the user is on a secure TTY defined in /etc/securetty. This
resembles the default PAM configuration of some Linux distros which
specify the nullok_secure option for pam_unix.so.
Based on patch by Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 12:57:04 +02:00
Denys Vlasenko
c054822027
factor: tweak comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-13 10:51:13 +02:00
Denys Vlasenko
6c149f4d9a
ash: implement "exec -a ARGV0 CMD ARGV1..."
...
function old new delta
execcmd 71 112 +41
shellexec 221 224 +3
evalcommand 1158 1161 +3
localcmd 364 366 +2
unaliascmd 163 154 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 49/-9) Total: 40 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 21:31:32 +02:00
Denys Vlasenko
e139ae307e
ash: make shellexec capable of using separate argv[0] and filename to exec
...
function old new delta
execcmd 71 78 +7
shellexec 221 224 +3
evalcommand 1158 1161 +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 13/0) Total: 13 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 21:02:33 +02:00
Denys Vlasenko
352ddd3d21
Tweak GETOPT_RESET comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 20:21:34 +02:00
Denys Vlasenko
c5496d3585
grep: FEATURE_GREP_CONTEXT should be available for "fgrep only" too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 17:53:54 +02:00
Denys Vlasenko
e31ca2e9b2
catv: convert this bbox-specific applet into "cat -v"
...
function old new delta
cat_main 150 320 +170
packed_usage 31511 31552 +41
applet_install_loc 190 189 -1
applet_main 1516 1512 -4
applet_names 2618 2613 -5
catv_main 227 - -227
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 2/3 up/down: 211/-237) Total: -26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 17:17:29 +02:00
Denys Vlasenko
d9eb40c185
fix errors found with make_single_applets.sh
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 15:48:19 +02:00
Denys Vlasenko
0cecbe7d5d
Sort more misplaced applets into coreutils or util-linux
...
No code changes
Surprisingly, nice and renice are coming from different packages :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 14:16:29 +02:00
Denys Vlasenko
783d57af7b
Sort some miscutils/ applets into coreutils or util-linux
...
No code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-12 13:58:40 +02:00
Denys Vlasenko
ac47a00e2e
partprobe: new applet
...
function old new delta
partprobe_main - 79 +79
packed_usage 31485 31511 +26
applet_names 2608 2618 +10
applet_main 1512 1516 +4
applet_install_loc 189 190 +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/0 up/down: 120/0) Total: 120 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 19:17:59 +02:00
Denys Vlasenko
1bc0bd13b5
w: new applet, alias to "who -H"
...
function old new delta
who_main 451 463 +12
packed_usage 31477 31485 +8
applet_main 1508 1512 +4
applet_names 2606 2608 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 26/0) Total: 26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 18:17:03 +02:00
Denys Vlasenko
67918b32ab
fallocate: new applet
...
NAME
fallocate - preallocate or deallocate space to a file
SYNOPSIS
fallocate [-c|-p|-z] [-o offset] -l length [-n] filename
fallocate -d [-o offset] [-l length] filename
DESCRIPTION
fallocate is used to manipulate the allocated disk space for a file,
either to deallocate or preallocate it. For filesystems which support
the fallocate system call, preallocation is done quickly by allocating
blocks and marking them as uninitialized, requiring no IO to the data
blocks. This is much faster than creating a file by filling it with
zeroes.
function old new delta
fallocate_main - 179 +179
applet_names 2597 2606 +9
applet_main 1504 1508 +4
applet_suid 94 95 +1
applet_install_loc 188 189 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 13:33:54 +02:00
Denys Vlasenko
b9512fa6b3
fsfreeze: new applet
...
NAME
fsfreeze - suspend access to a filesystem (Ext3/4, ReiserFS, JFS, XFS)
SYNOPSIS
fsfreeze --freeze|--unfreeze mountpoint
DESCRIPTION
fsfreeze suspends or resumes access to a filesystem.
fsfreeze halts any new access to the filesystem and creates a stable
image on disk.
AVAILABILITY
The fsfreeze command is part of the util-linux 2.28
function old new delta
fsfreeze_main - 81 +81
applet_names 2597 2606 +9
applet_main 1504 1508 +4
applet_suid 94 95 +1
applet_install_loc 188 189 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 11:53:05 +02:00
Denys Vlasenko
a976aaab0b
factor: remove debug code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 07:50:42 +02:00
Denys Vlasenko
8a134ec680
libbb: move isqrt from factor, use it in diff too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 07:34:56 +02:00
Denys Vlasenko
10673c44f1
factor: much faster, and very slightly larger isqrt()
...
function old new delta
isqrt_odd 70 88 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-11 07:02:42 +02:00
Denys Vlasenko
cc1f8ba489
factor: don't be too clever in isqrt - be small instead
...
function old new delta
isqrt_odd 111 70 -41
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 18:30:35 +02:00
Denys Vlasenko
ad5394d591
factor: add code to test isqrt() correctness
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 13:53:57 +02:00
Denys Vlasenko
dd3a395053
factor: 25% faster sieving
...
function old new delta
factorize 287 260 -27
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 12:10:46 +02:00
Denys Vlasenko
4908c79a01
factor: better comments, slightl more clever conversion even->odd
...
function old new delta
isqrt_odd 114 111 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 11:47:48 +02:00
Denys Vlasenko
f428f1dc6c
factor: fix HALF_FMT usage
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 10:13:14 +02:00
Denys Vlasenko
12dc4fbf18
factor: fix comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 00:41:11 +02:00
Denys Vlasenko
bef1713217
factor: a bit more simple isqrt
...
function old new delta
isqrt_odd 87 80 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 00:28:26 +02:00
Denys Vlasenko
c6476dca54
factor: simpler isqrt
...
function old new delta
isqrt_odd 102 87 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-10 00:24:16 +02:00
Denys Vlasenko
c804d4ec5c
factor: factor2 variable is unused now, drop it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-09 23:19:47 +02:00
Denys Vlasenko
7e5f2f3b51
factor: expand comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-09 23:12:38 +02:00
Denys Vlasenko
1d232fd440
factor: 30% faster code (estimate max possible factor just once)
...
function old new delta
factorize - 161 +161
isqrt_odd - 102 +102
factor_main 281 110 -171
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 263/-171) Total: 92 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-09 22:54:57 +02:00
Denys Vlasenko
c1b5b2a190
nl: fix copyright message
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-09 21:19:29 +02:00
Denys Vlasenko
ee7f75d94f
factor: new applet
...
thus far only able to factor up to ULLONG_MAX
function old new delta
factor_main - 378 +378
packed_usage 31427 31502 +75
applet_names 2590 2597 +7
applet_main 1500 1504 +4
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/0 up/down: 464/0) Total: 464 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-09 21:18:43 +02:00
Denys Vlasenko
87ae0fe095
nproc: new applet
...
function old new delta
nproc_main - 98 +98
applet_names 2584 2590 +6
applet_main 1496 1500 +4
applet_install_loc 187 188 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 21:47:53 +02:00
Denys Vlasenko
0f7f1ae094
shred: smaller code
...
function old new delta
shred_main 361 356 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 21:10:00 +02:00
Denys Vlasenko
2f59bf39e2
shred: new applet
...
function old new delta
shred_main - 361 +361
packed_usage 31427 31467 +40
applet_names 2578 2584 +6
applet_main 1492 1496 +4
run_applet_and_exit 679 682 +3
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/0 up/down: 414/0) Total: 414 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 20:45:08 +02:00
Denys Vlasenko
42776708f2
init: dont send "Sent SIGTERM to all" msg to syslog: we just TERMed it!
...
While at it, explain FEATURE_INIT_SYSLOG
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 19:13:09 +02:00
Denys Vlasenko
7121bb8023
ipaddress: tweak help text more: mention "brd +" syntax
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 18:22:41 +02:00
Denys Vlasenko
4eaa0f7729
ipaddress: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-07 18:14:46 +02:00