<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32, branch join2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=join2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=join2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2026-07-03T13:54:13+00:00</updated>
<entry>
<title>join: code shrink (4)</title>
<updated>2026-07-03T13:54:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T13:54:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d58fec2ae013f00f86dee5ce26b259761c63fffd'/>
<id>urn:sha1:d58fec2ae013f00f86dee5ce26b259761c63fffd</id>
<content type='text'>
The user supplies field numbers with the -o, -1 and -2 options.
It feels more natural to convert these to 0-based field indices
in the code.

Saves 32-48 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink (3)</title>
<updated>2026-07-03T13:40:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T12:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=696758b57738090390df9c2619c3cc5206e74146'/>
<id>urn:sha1:696758b57738090390df9c2619c3cc5206e74146</id>
<content type='text'>
When splitting the fields of a line, keep the string allocated
for the line and make the 'fields' array point into it rather
than allocating a new string for each field.

Saves 48 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink (2)</title>
<updated>2026-07-03T11:39:20+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-03T11:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=00cf32a21dba0187ece976bc9d33e4a8a8af8875'/>
<id>urn:sha1:00cf32a21dba0187ece976bc9d33e4a8a8af8875</id>
<content type='text'>
Reduce the amount of duplicated code in readfields() by handling
a pushed back line inside the main loop, with a flag to indicate
the first pass through the loop.

Replace some memcpy() calls with structure assignments.

Fix a bug in the code to increase the size of the 'lines' array.
It set the capacity to either 8 or 0.

Saves 112-128 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>rpm: respect BB_SYSTEMROOT</title>
<updated>2026-07-02T12:11:37+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-07-02T12:11:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=882815f8740fe0c42ff53bc7df8f9bfb750d6944'/>
<id>urn:sha1:882815f8740fe0c42ff53bc7df8f9bfb750d6944</id>
<content type='text'>
Update the 'rpm' applet so it also respects the BB_SYSTEMROOT
environment variable.

Replace chdir_system_drive() with xchdir_system_drive(), which
exits on failure to change directory.

Saves 32-36 bytes.

(GitHub PR #603)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>dpkg: update prefix (#603)</title>
<updated>2026-07-02T10:54:38+00:00</updated>
<author>
<name>mbartlett21</name>
<email>29034492+mbartlett21@users.noreply.github.com</email>
</author>
<published>2026-07-02T10:54:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=20495b16aaf9bc888a6fc1d10b3746c506420b04'/>
<id>urn:sha1:20495b16aaf9bc888a6fc1d10b3746c506420b04</id>
<content type='text'>
* dpkg: update prefix

The prefix now works properly with BB_SYSTEMROOT as it no longer
writes everything with a prefixed /

For example, with BB_SYSTEMROOT=C:/somepath, the /var/lib/dpkg directory
is now underneath that, rather than the root of that drive.

Also added handling so that the extracted files are also there.

* dpkg: prefix updates

For clarity, the .list files now always include leading slashes,
matching what happens in upstream.
There is then special handling under remove_file_array to turn them
back into relative paths. The handling assumes that files can be both,
since it does get called with some relative paths.

Adds 14-54 bytes.</content>
</entry>
<entry>
<title>ash: only report background jobs in root shell</title>
<updated>2026-06-30T16:50:30+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-30T16:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57'/>
<id>urn:sha1:c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57</id>
<content type='text'>
Background jobs were being reported in shells other than an
interactive, top-level shell.

Suppress this unnecessary report.

Adds 16 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>ash: only copy jobtab if needed for job hack</title>
<updated>2026-06-30T16:31:20+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-30T16:31:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f16e9b40a381618573211b4e82162e819eec1587'/>
<id>urn:sha1:f16e9b40a381618573211b4e82162e819eec1587</id>
<content type='text'>
This script:

  #!/bin/bash

  (
    ( true ) &amp;
    ( true ) &amp;
    ( true ) &amp;
    ( true ) &amp;
    ( true ) &amp;
  )

resulted in a crash.  The problem was introduced by commit
7b692ddf0c (ash: improved support for jobs built-in).  This
commit copies the job table into child shells for use by the
'jobs' built-in.

The crash happens because when the job table is cleared in the
child it becomes available for reuse.  If only four jobs are
required this is OK but going over four causes the table to be
reallocated.  This doesn't work because in the child it's in
shared memory.

The fix is not to pass the job table to the child unless it's
required by the 'jobs' built-in.  This is also more efficient.

Adds 0-16 bytes.

(GitHub issue #604)

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>join: code shrink</title>
<updated>2026-06-30T08:07:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-30T08:07:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b2fcbec6605532b7fa9a6e004bab7f731e956913'/>
<id>urn:sha1:b2fcbec6605532b7fa9a6e004bab7f731e956913</id>
<content type='text'>
Adopt some BusyBox idioms in join_main().  In particular:

- The '-a' and '-v' options are mutually exclusive. Enforce this
  in getopt32() instead of by hand.  Also, since they're mutually
  exclusive we don't need a distinct list for each.

- Control some clean-up code with ENABLE_FEATURE_CLEAN_UP.

There are also a few cosmetic changes.

Saves 204-256 bytes.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>build system: allow bloatcheck to work (a bit) for llvm</title>
<updated>2026-06-30T07:45:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-30T07:45:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=74903ef0c8d838021035a0ece7f749cf2ea44937'/>
<id>urn:sha1:74903ef0c8d838021035a0ece7f749cf2ea44937</id>
<content type='text'>
'make bloatcheck' didn't work in the ARM build because it didn't
handle the different output formats of llvm's 'objdump' and 'nm'.

Allow for 'objdump -h' printing 5 rather than 7 fields.  This at
least gets us some output.  'nm' always seems to print symbol
sizes of zero, though, which isn't very useful.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: tweak bitmap icon appearance</title>
<updated>2026-06-26T11:48:05+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-06-26T11:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=94cfedd0f57b4af77a90414d148e3fe6e6958e45'/>
<id>urn:sha1:94cfedd0f57b4af77a90414d148e3fe6e6958e45</id>
<content type='text'>
Make the corners of the symbolic bitmap icon look more rounded.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
</feed>
