<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/coreutils, branch path_search</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=path_search</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=path_search'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2024-05-14T11:33:03+00:00</updated>
<entry>
<title>kill: killing a zombie process should fail</title>
<updated>2024-05-14T11:33:03+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-05-14T11:33:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=569de936abb90f4c7cdca9da111a6ea780b135bf'/>
<id>urn:sha1:569de936abb90f4c7cdca9da111a6ea780b135bf</id>
<content type='text'>
A process which has exited may still have its process handle
held open by its children.  Such a process doesn't appear in
the process table.  It is thus similar to a zombie process in
UNIX.  Using kill(1) to interact with such a process was seen
to succeed, contrary to expectation.

The code for "ordinary" signals in kill(2) did check if the
process was still active but didn't treat an attempt to kill
an inactive process as an error.  Furthermore, sending SIGKILL
or the fake signal 0 to a process didn't even check if the
process was still active.

Rearrange the implementation of kill(2) so that an attempt to
signal an inactive process is treated as an error.  This also
consolidates handling of SIGKILL and signal 0 with "ordinary"
signals.

Saves 96 bytes.

(GitHub issue #416)
</content>
</entry>
<entry>
<title>yes: code shrink</title>
<updated>2024-04-18T08:21:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-04-18T08:21:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4fa00ce8a5b769acb5be4e6b13be713428ef23e4'/>
<id>urn:sha1:4fa00ce8a5b769acb5be4e6b13be713428ef23e4</id>
<content type='text'>
Now that putchar() is implemented using winansi_fputc() it isn't
necessary to perform an explicit substitution in 'yes'.

This was previously done so 'yes' could check for a broken pipe.

Saves 16-32 bytes.
</content>
</entry>
<entry>
<title>timeout: fix handling of timeouts</title>
<updated>2024-04-08T12:22:30+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-04-08T12:22:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=55ecf3a746db5131ca078875168a59feab8b26f1'/>
<id>urn:sha1:55ecf3a746db5131ca078875168a59feab8b26f1</id>
<content type='text'>
The 'timeout' applet, by default, accepted fractional seconds but
ignored the fraction.  Moreover, in busybox-w32, even the integer
part was incorrectly handled.

Rewrite the (Windows) code to fix both problems.

A patch has also been submitted to fix upstream.  If that is
accepted the Windows port will need to be updated to match.

Saves 8-16 bytes.

(GitHub issue #400)
</content>
</entry>
<entry>
<title>md5/shaXsum: accept uppercase hex strings</title>
<updated>2024-04-03T12:40:21+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-04-03T12:29:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=abdfde6ba63622c7d0fb9b42b7f38e40ba5619b2'/>
<id>urn:sha1:abdfde6ba63622c7d0fb9b42b7f38e40ba5619b2</id>
<content type='text'>
The coreutils versions of md5sum and the like accept uppercase hex
strings from checksum files specified with the '-c' option.

Use a case-insensitive comparison so BusyBox does the same.

(GitHub issue #394)
</content>
</entry>
<entry>
<title>ls: support NO_COLOR environment variable</title>
<updated>2024-01-30T14:15:42+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-01-30T14:04:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=59783a1ce07482493e20b6a8b0fc1bfc06ee047c'/>
<id>urn:sha1:59783a1ce07482493e20b6a8b0fc1bfc06ee047c</id>
<content type='text'>
If the NO_COLOR environment variable is set and is not empty 'ls'
won't output ANSI colour codes.  This is an alternative to the
existing approach of setting 'LS_COLORS=none'.

See https://no-color.org/.

Costs 24-32 bytes.

(GitHub issue #382)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-12-05T07:44:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-12-05T07:44:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7dff7f37600209353cf4e86d1cca29bacf5f7372'/>
<id>urn:sha1:7dff7f37600209353cf4e86d1cca29bacf5f7372</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sleep: Update doc</title>
<updated>2023-11-07T15:59:09+00:00</updated>
<author>
<name>Petr Vorel</name>
<email>pvorel@suse.cz</email>
</author>
<published>2023-11-03T20:14:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d17c0a348fc10897d86e0e96aa98be5ac88d6fdd'/>
<id>urn:sha1:d17c0a348fc10897d86e0e96aa98be5ac88d6fdd</id>
<content type='text'>
4c20d9f2b removed FEATURE_FLOAT_SLEEP option, thus since then there are
only two variants.

Fixes: 4c20d9f2b ("extend fractional duration support to "top -d N.N" and "timeout"")
Signed-off-by: Petr Vorel &lt;pvorel@suse.cz&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>install: Fix chown resetting suid/sgid bits from chmod</title>
<updated>2023-10-02T12:26:27+00:00</updated>
<author>
<name>Nero</name>
<email>nero@w1r3.net</email>
</author>
<published>2023-09-23T11:50:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6d22c9abc29d43e919e819ff004fcd84a90de60b'/>
<id>urn:sha1:6d22c9abc29d43e919e819ff004fcd84a90de60b</id>
<content type='text'>
Since Linux 2.2.13, chown(2) resets the suid/gid bits for all users.
This patch changes the ordering so that chmod gets called after chown.

This behavior follows GNU coreutils.

Signed-off-by: Nero &lt;nero@w1r3.net&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sleep: fix "sleep -- ARGS"</title>
<updated>2023-10-02T11:56:32+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-10-02T11:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=791b222dd55d3aa0e8b09be1be571e4829465dd6'/>
<id>urn:sha1:791b222dd55d3aa0e8b09be1be571e4829465dd6</id>
<content type='text'>
function                                             old     new   delta
sleep_main                                           116     119      +3
printf_main                                          860     837     -23
single_argv                                           50      25     -25
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 3/-48)             Total: -45 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sort: add support for sorting version strings</title>
<updated>2023-10-01T06:06:19+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-10-01T06:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1942077cade6374a7c37fcdcf6cbf55dd52e13c4'/>
<id>urn:sha1:1942077cade6374a7c37fcdcf6cbf55dd52e13c4</id>
<content type='text'>
Add an implementation of strverscmp from musl so that the 'sort -V'
option works.

Add '-V' to the trivial usage message.

Costs 248-256 bytes.

(GitHub issue #370)
</content>
</entry>
</feed>
