<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/loginutils, 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-03-08T09:19:30+00:00</updated>
<entry>
<title>su: free all allocated memory</title>
<updated>2024-03-08T09:19:30+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-03-08T09:16:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a9f74eb95d4c0da15b93d943ccdf872a642ea368'/>
<id>urn:sha1:a9f74eb95d4c0da15b93d943ccdf872a642ea368</id>
<content type='text'>
Ensure memory is freed even on early exit.

Saves 0-16 bytes.
</content>
</entry>
<entry>
<title>su: handle restricted disk drivers</title>
<updated>2024-03-07T14:34:22+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-03-07T14:34:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3aef195c435771e43ccddb6226f8c98519e2b830'/>
<id>urn:sha1:3aef195c435771e43ccddb6226f8c98519e2b830</id>
<content type='text'>
Certain tools which allow disk image files and RAM disks to be
mounted were found to lack a feature used to implement realpath(3).
This resulted in a segfault in the 'su' applet when it was run in
such a virtual filesystem.

'su' uses realpath(3) to canonicalise the current directory.  This
is only really required to handle network shares mapped to a drive
letter.  (GitHub issue #148)

- If the call to realpath(3) fails for some reason fall back to
  using the current directory determined by calling getcwd(3).

- If getcwd(3) fails simply don't pass any directory to the shell
  being started by 'su'.

Also, ensure all allocated memory is freed, if required.

(GitHub issue #389)

Adds 16-32 bytes.
</content>
</entry>
<entry>
<title>win32: convert exit codes</title>
<updated>2023-09-14T07:09:14+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-09-14T07:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0475b7a649209487269e35cbe49662a33524e6ae'/>
<id>urn:sha1:0475b7a649209487269e35cbe49662a33524e6ae</id>
<content type='text'>
Add two utility functions to convert Windows process exit codes.

- exit_code_to_wait_status() converts to a POSIX wait status.
  This is used in ash and the implementations of system(3) and
  mingw_wait3().

- exit_code_to_posix() converts to a POSIX exit code.  (Not that
  POSIX has much to say about them.)

As a result it's possible for more applets to report when child
processes are killed as if by a signal.  'time', 'drop' and 'su -W',
for example.

Adds 64-80 bytes.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-07-13T07:06:26+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-07-13T07:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bd978d0256fd3a67de1a7dd54f1a37f9435be363'/>
<id>urn:sha1:bd978d0256fd3a67de1a7dd54f1a37f9435be363</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update applet size estimates</title>
<updated>2023-07-10T15:25:21+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-07-10T15:25:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5353df91cba7b397b9407701681708d0a1518df6'/>
<id>urn:sha1:5353df91cba7b397b9407701681708d0a1518df6</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: code shrink: introduce and use [_]exit_FAILURE()</title>
<updated>2023-06-15T09:55:56+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T09:55:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=648f506949ded749e28186d0092b6e42085c897b'/>
<id>urn:sha1:648f506949ded749e28186d0092b6e42085c897b</id>
<content type='text'>
function                                             old     new   delta
exit_FAILURE                                           -       7      +7
_exit_FAILURE                                          -       7      +7
run                                                  198     199      +1
restore_state_and_exit                               114     115      +1
xbsd_write_bootstrap                                 399     397      -2
vfork_compressor                                     209     207      -2
sig_handler                                           12      10      -2
serial_ctl                                           154     152      -2
parse_args                                          1169    1167      -2
onintr                                                21      19      -2
make_new_session                                     493     491      -2
login_main                                           988     986      -2
gotsig                                                35      33      -2
do_iplink                                           1315    1313      -2
addgroup_main                                        397     395      -2
inetd_main                                          1911    1908      -3
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/12 up/down: 16/-25)            Total: -9 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>su: fix usage message</title>
<updated>2023-05-28T09:13:49+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-05-28T09:13:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=82accfc19fcbda7cd2245a727ca493b582fb0994'/>
<id>urn:sha1:82accfc19fcbda7cd2245a727ca493b582fb0994</id>
<content type='text'>
</content>
</entry>
<entry>
<title>su: add option to keep console open on shell exit</title>
<updated>2023-05-02T10:01:10+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-05-02T10:01:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a0ed5a7ceaf4636eab0bb66b523a9eaf437acbe8'/>
<id>urn:sha1:a0ed5a7ceaf4636eab0bb66b523a9eaf437acbe8</id>
<content type='text'>
The '-N' option keeps the console window open after the elevated
shell exits.

Previously this was achieved by passing the '-s' option along with
'-c'.  Recent changes allow scripts to be run without using '-c'
so a new mechanism is required.

su passes the '-N' flag to the shell.  This causes the shell to
issue a prompt and wait for user input when it exits.

Costs 200-204 bytes.
</content>
</entry>
<entry>
<title>su: add option to wait for shell exit code</title>
<updated>2023-05-02T10:00:25+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-05-02T10:00:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=61be00816a0c09379b4b3f2655c70e9e14bc0841'/>
<id>urn:sha1:61be00816a0c09379b4b3f2655c70e9e14bc0841</id>
<content type='text'>
The '-W' option causes su to wait for the elevated shell to
terminate and returns its exit code.

Costs 144 bytes.
</content>
</entry>
<entry>
<title>su: pass additional arguments to sh</title>
<updated>2023-04-26T07:33:28+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-26T07:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cbbb73da90bac5029cbd58f4a8f148312768bc0f'/>
<id>urn:sha1:cbbb73da90bac5029cbd58f4a8f148312768bc0f</id>
<content type='text'>
The real su allows a command file to be run, with arguments given
on the command line.  Similarly it allows the script run with '-c'
to take arguments.  In fact, any arguments can be passed to sh.

Permit the same in the Windows implementation.  For compatibility
this requires a user name to be specified, even though we only
support elevation.  The user name must be 'root'.

Also, ensure the '-c' command is properly quoted.

Adds 144-152 bytes.

(GitHub PR #317)
</content>
</entry>
</feed>
