<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/miscutils, branch 1_31_1</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=1_31_1</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=1_31_1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2019-10-21T14:54:40+00:00</updated>
<entry>
<title>dc: Parse error &amp; fix out of bounds read in xc_program_printString</title>
<updated>2019-10-21T14:54:40+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-09-05T08:53:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2f3352682e3e0f62aca80c12e64d4509e48df465'/>
<id>urn:sha1:2f3352682e3e0f62aca80c12e64d4509e48df465</id>
<content type='text'>
function                                             old     new   delta
xc_program_print                                     712     735     +23

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>dc: Fix segfault when executing strings generated using asciify</title>
<updated>2019-10-21T14:54:40+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-09-05T08:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5'/>
<id>urn:sha1:50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5</id>
<content type='text'>
function                                             old     new   delta
zxc_vm_process                                      6884    6891      +7

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>dc: execute shouldn't pop if stack head is not a string</title>
<updated>2019-10-21T14:54:40+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-09-05T08:46:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4699b932446f809d747d97f8e24b5d48608f7276'/>
<id>urn:sha1:4699b932446f809d747d97f8e24b5d48608f7276</id>
<content type='text'>
This matches the behaviour of both GNU dc (as specified in
its man page), and BSD dc (where stack_popstring() pops
only if the head is a string.)

Add a couple of tests to verify this behavior.

function                                             old     new   delta
zxc_vm_process                                      6882    6884      +2

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bc: placate compiler warnings</title>
<updated>2019-06-08T10:39:30+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-06-08T10:39:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7a4e55422a3143eee48660a1f620646a88988147'/>
<id>urn:sha1:7a4e55422a3143eee48660a1f620646a88988147</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>dc: make 4 % 0 emit error messgaes and set result to 0</title>
<updated>2019-05-16T07:40:36+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-16T07:40:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1113961dde21ce73c1543ca466913d9e17d06c1b'/>
<id>urn:sha1:1113961dde21ce73c1543ca466913d9e17d06c1b</id>
<content type='text'>
function                                             old     new   delta
mod                                                  105     136     +31

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>dc: code shrink</title>
<updated>2019-05-09T13:58:46+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-09T13:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=89023b167fad897fb6c0d2cdd24f0140beea7df3'/>
<id>urn:sha1:89023b167fad897fb6c0d2cdd24f0140beea7df3</id>
<content type='text'>
function                                             old     new   delta
check_under                                           20      21      +1
print_no_pop                                          32      27      -5
pop                                                   24      18      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-11)             Total: -10 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Optionally re-introduce bb_info_msg()</title>
<updated>2019-04-30T08:51:27+00:00</updated>
<author>
<name>James Byrne</name>
<email>james.byrne@origamienergy.com</email>
</author>
<published>2019-04-12T17:01:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=253c4e787a799a3e1f92957ed791b5222f8d2f64'/>
<id>urn:sha1:253c4e787a799a3e1f92957ed791b5222f8d2f64</id>
<content type='text'>
Between Busybox 1.24.2 and 1.25.0 the bb_info_msg() function was
eliminated and calls to it changed to be bb_error_msg(). The downside of
this is that daemons now log all messages to syslog at the LOG_ERR level
which makes it hard to filter errors from informational messages.

This change optionally re-introduces bb_info_msg(), controlled by a new
option FEATURE_SYSLOG_INFO, restores all the calls to bb_info_msg() that
were removed (only in applets that set logmode to LOGMODE_SYSLOG or
LOGMODE_BOTH), and also changes informational messages in ifplugd and
ntpd.

The code size change of this is as follows (using 'defconfig' on x86_64
with gcc 7.3.0-27ubuntu1~18.04)

function                                             old     new   delta
bb_info_msg                                            -     182    +182
bb_vinfo_msg                                           -      27     +27
static.log7                                          194     198      +4
log8                                                 190     191      +1
log5                                                 190     191      +1
crondlog                                              45       -     -45
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 215/-45)           Total: 170 bytes

If you don't care about everything being logged at LOG_ERR level
then when FEATURE_SYSLOG_INFO is disabled Busybox actually gets smaller:

function                                             old     new   delta
static.log7                                          194     200      +6
log8                                                 190     193      +3
log5                                                 190     193      +3
syslog_level                                           1       -      -1
bb_verror_msg                                        583     581      -2
crondlog                                              45       -     -45
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 3/1 up/down: 12/-48)            Total: -36 bytes

Signed-off-by: James Byrne &lt;james.byrne@origamienergy.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>man: add "/usr/share/man" as another default MANPATH, fix col override</title>
<updated>2019-03-30T16:27:09+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-03-30T16:27:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0f5a7f35206668f79c18415eaa4a1fd15750dc74'/>
<id>urn:sha1:0f5a7f35206668f79c18415eaa4a1fd15750dc74</id>
<content type='text'>
function                                             old     new   delta
static.mpl                                             -      12     +12
packed_usage                                       33307   33316      +9
man_main                                             857     851      -6
add_MANPATH                                          148     138     -10
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 21/-16)              Total: 5 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>man: don't skip default path which appears in config file</title>
<updated>2019-03-26T16:46:21+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2019-03-22T16:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3c6f3336e124be483e4852f022b1d07c1d2f7f2c'/>
<id>urn:sha1:3c6f3336e124be483e4852f022b1d07c1d2f7f2c</id>
<content type='text'>
If the MANPATH environment variable isn't set a provisional default
path of /usr/man is placed in man_path_list.  This is only used if a
configuration file doesn't contain an alternative path.

If a configuration file lists the default path first:

   MANPATH /usr/man:/usr/share/man

add_MANPATH() sees that the default entry is already present and skips
it.  As a result man_path_list only contains the second and subsequent
components of the configured MANPATH.

In such cases the path should not be skipped.

function                                             old     new   delta
add_MANPATH                                          170     183     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0)               Total: 13 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ts: do call localtime() when neither -s nor -i specified</title>
<updated>2019-03-26T10:51:21+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-03-26T10:51:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=fe78c9a8b727b0145fa93505cca621fe7962b9e9'/>
<id>urn:sha1:fe78c9a8b727b0145fa93505cca621fe7962b9e9</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
