<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/miscutils, branch su_cmd2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=su_cmd2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=su_cmd2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-04-23T08:04:01+00:00</updated>
<entry>
<title>win32: export xappendword()</title>
<updated>2023-04-23T08:04:01+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-23T08:00:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0575aaaa0779812752427badbc0f80a09aac02a4'/>
<id>urn:sha1:0575aaaa0779812752427badbc0f80a09aac02a4</id>
<content type='text'>
Export the function xappendword() from make.  Use it in drop and
watch.

Saves 8-80 bytes, an unusually large disparity.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-04-17T06:32:52+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-17T06:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8cdeb571cfbf3bb6edc44779e46537b072b8cd08'/>
<id>urn:sha1:8cdeb571cfbf3bb6edc44779e46537b072b8cd08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>seedrng: fix for glibc &lt;= 2.24 not providing random header</title>
<updated>2023-04-11T11:56:12+00:00</updated>
<author>
<name>Thomas Devoogdt</name>
<email>thomas@devoogdt.com</email>
</author>
<published>2023-04-10T17:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cb57abb46f06f4ede8d9ccbdaac67377fdf416cf'/>
<id>urn:sha1:cb57abb46f06f4ede8d9ccbdaac67377fdf416cf</id>
<content type='text'>
 - dropped the wrong define (not sure why it was there)
 - &lt;sys/random.h&gt; not available if glibc &lt;= 2.24
 - GRND_NONBLOCK not defined if &lt;sys/random.h&gt; not included
 - ret &lt; 0 &amp;&amp; errno == ENOSYS has to be true to get creditable set

Signed-off-by: Thomas Devoogdt &lt;thomas@devoogdt.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>seedrng: fix for glibc &lt;= 2.24 not providing getrandom()</title>
<updated>2023-04-10T15:26:04+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-10T15:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=200a9669fbf6f06894e4243cccc9fc11a1a6073a'/>
<id>urn:sha1:200a9669fbf6f06894e4243cccc9fc11a1a6073a</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>drop: adjust environment on privilege change</title>
<updated>2023-03-27T07:57:40+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-27T07:57:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=255ebaf535c9f6d8a88e23d55d8be04b0ea73343'/>
<id>urn:sha1:255ebaf535c9f6d8a88e23d55d8be04b0ea73343</id>
<content type='text'>
Some environment variables are subject to special treatment: USER,
LOGNAME, HOME and SHELL are initialised when the shell starts if
they don't already have a value.

Some adjustments are necessary when changing privilege level:

- USERNAME is added to the set of variables subject to special
  treatment.  Unlike the others this is normally set on Windows.

- The special variables are now also updated on shell start up if
  the current process is running with elevated privileges.  This is
  necessary so USER, USERNAME and LOGNAME have the correct value.

- USER, USERNAME and LOGNAME are set to the name of the unprivileged
  user when elevated privileges are dropped, though not if they've
  been changed from the expected value of "root".

Costs 160-208 bytes.

(GitHub issue #300)
</content>
</entry>
<entry>
<title>drop: cdrop and pdrop don't need shell</title>
<updated>2023-03-23T11:29:34+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-23T11:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f491e57d1ce04ec8124b9605268e5ecd3b1fb489'/>
<id>urn:sha1:f491e57d1ce04ec8124b9605268e5ecd3b1fb489</id>
<content type='text'>
The cdrop and pdrop variants don't require the binary to include
a shell.  Removing this dependency makes it possible to build
cdrop/pdrop as a much smaller standalone binaries.

Update the default configuration to build a standalone make binary
to exclude drop/cdrop/pdrop.
</content>
</entry>
<entry>
<title>drop: search PATH for cmd.exe/PowerShell</title>
<updated>2023-03-23T08:00:36+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-23T08:00:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=138e956a2e34d1b708366b6286687766a7176341'/>
<id>urn:sha1:138e956a2e34d1b708366b6286687766a7176341</id>
<content type='text'>
Rather than hardcode the paths of cmd.exe and PowerShell find them
by searching PATH.

Saves 104-128 bytes.

(GitHub issue #240)
</content>
</entry>
<entry>
<title>drop: add cdrop and pdrop aliases</title>
<updated>2023-03-19T10:26:24+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-19T10:26:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d9e8bb61cf380264511a4524281af2ca57498bce'/>
<id>urn:sha1:d9e8bb61cf380264511a4524281af2ca57498bce</id>
<content type='text'>
Add cdrop and pdrop applets as aliases for drop.  If a command
isn't specified these use cmd.exe and PowerShell instead of the
BusyBox shell.

This makes it possible to choose the default shell used for SSH
connections even in older versions of OpenSSH that don't support
the DefaultShellArguments registry key.

Note that to get cmd.exe to run a command rather than an interactive
shell it's necessary to set the DefaultShellCommandOption registry
key to '/c'.

Costs 248-272 bytes.
</content>
</entry>
<entry>
<title>runuser,drop: drop runuser, tweak drop</title>
<updated>2023-03-19T10:25:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-19T10:25:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b0e7a401d51402c052563f55331c8b9001a1215c'/>
<id>urn:sha1:b0e7a401d51402c052563f55331c8b9001a1215c</id>
<content type='text'>
Remove the runuser applet, leaving only drop.  Move drop from
util-linux to miscutils.

A command of the form 'drop -c command' causes the BusyBox shell
to be used, just like 'drop' without any arguments.  A simple
OpenSSH configuration with 'drop.exe' as DefaultShell and no
DefaultShellArguments now works both for interactive login and
to run a command.  This is useful for older versions of OpenSSH
which don't support DefaultShellArguments.

Saves 208-232 bytes.
</content>
</entry>
<entry>
<title>make: code shrink</title>
<updated>2023-03-16T10:53:09+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-16T10:53:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=75b72cb68744a37257269ff39e30cd254f103802'/>
<id>urn:sha1:75b72cb68744a37257269ff39e30cd254f103802</id>
<content type='text'>
Use alloc_ext_space() instead of a hand-coded equivalent.

Saves 16-32 bytes.
</content>
</entry>
</feed>
