<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/loginutils, branch su_cmd</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=su_cmd</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=su_cmd'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-04-21T14:08:28+00:00</updated>
<entry>
<title>su: allow additional arguments after su -c</title>
<updated>2023-04-21T14:08:28+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-21T14:08:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9c20ed5246abbfe2fdae16a70b7fac1d0d1e51f0'/>
<id>urn:sha1:9c20ed5246abbfe2fdae16a70b7fac1d0d1e51f0</id>
<content type='text'>
The syntax becomes:

  su [-c CMD [ARG...]]

This makes it a lot easier to use values from the current shell,
instead of shell-quoting them for re-input and embedding at CMD.

Also, previously -c expected an option-argument, and now it's a flag
which requires a CMD operand, just like 'sh', so that both these
forms now error the same way (as they should):

   sh -c --
   su -c --

(previously su -c -- did not error because '--' was assumed CMD)

Adds 64 bytes.

(Based on GitHub PR #317)
</content>
</entry>
<entry>
<title>su: escape quotes and backslashes in command</title>
<updated>2023-04-21T14:04:59+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-21T14:00:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9ce85210e61e6c75adfc0ac0f54643cfee1353be'/>
<id>urn:sha1:9ce85210e61e6c75adfc0ac0f54643cfee1353be</id>
<content type='text'>
In 'su -c "CMD"' CMD should become a single argument to busybox
sh -c ...

But previously, the parameter string to ShellExecute was constructed
by placing the literal value of CMD inside double quotes, which could
result in incorrect and/or more than one parameter seen by the
program, because double-quotes and (some) backslashes in CMD should
be escaped while constructing the string, but they weren't.

Now they're escaped so that the WIN32 CommandLineToArgv[W] parses it
into a single argument with value identical to the original CMD.
</content>
</entry>
<entry>
<title>Merge busybox into merge</title>
<updated>2022-02-09T09:05:39+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-02-09T09:03:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=492d0a7492a57fe8f02c766e25960b0ce0d88759'/>
<id>urn:sha1:492d0a7492a57fe8f02c766e25960b0ce0d88759</id>
<content type='text'>
Fix conflicts in reset and ash.

Redefine the new safe_read_key() as a reference to read_key().

Disable SHA256_HWACCEL.
</content>
</entry>
<entry>
<title>libbb: invert the meaning of SETUP_ENV_NO_CHDIR -&gt; SETUP_ENV_CHDIR</title>
<updated>2022-01-13T11:50:48+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-13T11:50:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=931c55f9e2b41473132683488820c6fb7c47506b'/>
<id>urn:sha1:931c55f9e2b41473132683488820c6fb7c47506b</id>
<content type='text'>
Double negatives are hard to grok.

function                                             old     new   delta
login_main                                           986     988      +2
su_main                                              474     470      -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-4)               Total: -2 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge busybox into merge</title>
<updated>2022-01-13T08:02:41+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-01-13T08:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4734416a21312488a5099a297907783bee4ccc22'/>
<id>urn:sha1:4734416a21312488a5099a297907783bee4ccc22</id>
<content type='text'>
Fix merge conflicts in coreutils/ls.c and shell/ash.c.

Update config files to turn off SHA1_HWACCEL.  It uses non-portable
assembler.
</content>
</entry>
<entry>
<title>sulogin: util-linux does not say "normal startup" on Ctrl-D</title>
<updated>2022-01-13T00:43:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-13T00:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b3eec1651fb02d70716caa355f49320719f74c75'/>
<id>urn:sha1:b3eec1651fb02d70716caa355f49320719f74c75</id>
<content type='text'>
function                                             old     new   delta
sulogin_main                                         341     331     -10
.rodata                                           104327  104312     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-25)             Total: -25 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sulogin: start _login_ shell only with -p</title>
<updated>2022-01-13T00:38:47+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-13T00:38:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=96771ec5f5fb81b479973fbd25af48c5cb83b2bb'/>
<id>urn:sha1:96771ec5f5fb81b479973fbd25af48c5cb83b2bb</id>
<content type='text'>
Also, shorten/eliminate messages to be closer to util-linux.

function                                             old     new   delta
packed_usage                                       34233   34238      +5
sulogin_main                                         340     341      +1
.rodata                                           104380  104327     -53
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 6/-53)             Total: -47 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: ^C with SIG_INGed SIGINT should not exit the shell</title>
<updated>2022-01-13T00:15:10+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-13T00:05:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=68b402ee51f12f8c3b11638b042f57e025359faf'/>
<id>urn:sha1:68b402ee51f12f8c3b11638b042f57e025359faf</id>
<content type='text'>
function                                             old     new   delta
__pgetc                                              501     522     +21

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sulogin: increase util-linux compatibility</title>
<updated>2022-01-12T22:19:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-12T22:19:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d162a7b978a98b910e410dc10a40d5de12db0419'/>
<id>urn:sha1:d162a7b978a98b910e410dc10a40d5de12db0419</id>
<content type='text'>
Change to root's HOME. Set some envvars. Steal ctty if necessary and possible.

function                                             old     new   delta
sulogin_main                                         240     340    +100
setup_environment                                    225     233      +8
su_main                                              479     474      -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 108/-5)            Total: 103 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge busybox into merge</title>
<updated>2022-01-06T07:46:38+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-01-06T07:46:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b8751bbc9ac24e71fbe1e79c69074b4c87a134d8'/>
<id>urn:sha1:b8751bbc9ac24e71fbe1e79c69074b4c87a134d8</id>
<content type='text'>
Fix merge conflict in miscutils/less.c.

Use exit_SUCCESS() where possible.
</content>
</entry>
</feed>
