<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/get_last_path_component.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2026-03-11T10:14:49+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2026-03-11T10:14:49+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-03-11T10:14:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ede205bd07573813337b5706acb0cae3b127a36f'/>
<id>urn:sha1:ede205bd07573813337b5706acb0cae3b127a36f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>*: placate warnings where strchr/strstr returns constant pointer</title>
<updated>2026-02-15T14:15:30+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2026-02-15T13:41:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b668e52c906b664b353d5a99cfa3ff36f73b341d'/>
<id>urn:sha1:b668e52c906b664b353d5a99cfa3ff36f73b341d</id>
<content type='text'>
Newer glibc is now smarter and can propagate const-ness from those!

function                                             old     new   delta
readtoken1                                          3111    3108      -3

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>win32: code shrink</title>
<updated>2024-08-16T10:19:01+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-08-16T10:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2b00b4311ecf4c6f6331f8c969934fa792f7e15c'/>
<id>urn:sha1:2b00b4311ecf4c6f6331f8c969934fa792f7e15c</id>
<content type='text'>
Add the FAST_FUNC qualifier to several Windows-specific functions.
This has no effect in 64-bit builds but saves 336 bytes for 32-bit.
</content>
</entry>
<entry>
<title>libbb: code shrink bb_get_last_path_component_strip()</title>
<updated>2024-01-04T10:56:11+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-01-04T10:56:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f72312908b11605f527d002b4e8ce729bbe237a5'/>
<id>urn:sha1:f72312908b11605f527d002b4e8ce729bbe237a5</id>
<content type='text'>
Use the new function last_char_is_dir_sep() to save 16 bytes in
bb_get_last_path_component_strip().
</content>
</entry>
<entry>
<title>realpath: improved support for Windows paths</title>
<updated>2021-10-13T15:44:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-10-13T15:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4daf57b4fdc80422d6448c0a7914699fdedb95b8'/>
<id>urn:sha1:4daf57b4fdc80422d6448c0a7914699fdedb95b8</id>
<content type='text'>
Upstream commit 94eb1c4dc (libbb: better coreutils compatibility
for realpath) made some changes to xmalloc_realpath_coreutils().
This now needs to be updated to handle Windows paths.

- Expose the macro is_unc_path() and part of the recent change to
  bb_get_last_path_component_nostrip() as a separate funtion,
  get_last_slash();

- Convert a couple of errors relating to network filesystems to
  ENOENT;

- Adjust xmalloc_realpath_coreutils() to handle Windows directory
  separators, relative paths and UNC paths.
</content>
</entry>
<entry>
<title>win32: fix bb_get_last_path_component_nostrip()</title>
<updated>2021-10-13T13:21:18+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-10-13T13:21:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4859ddcb20616718efbea12c6bf8b27c469b68de'/>
<id>urn:sha1:4859ddcb20616718efbea12c6bf8b27c469b68de</id>
<content type='text'>
Finding the last component of a path didn't properly handle a
mixture of slashes and backslashes, paths relative to another
drive or bare UNC paths.  The following were incorrect:

   $ basename /dir\\file
   dir\file
   $ basename c:file
   c:file
   $ basename //HOST/share
   share

With this patch the results are now:

   $ basename /dir\\file
   file
   $ basename c:file
   file
   $ basename //HOST/share
   //HOST/share
</content>
</entry>
<entry>
<title>win32: improve handling of 'c:file' paths for executables</title>
<updated>2020-03-18T11:27:05+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-03-18T10:48:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f9569be1e5ca929d68e28064be3ffadcb0aff784'/>
<id>urn:sha1:f9569be1e5ca929d68e28064be3ffadcb0aff784</id>
<content type='text'>
bb_basename() didn't properly handle paths of the form 'c:file'.
Attempting to run 'c:busybox' resulted in 'c:busybox: applet not found'.

The shell had a similar problem: trying to run 'c:busybox' reported
'sh: c:busybox: not found'.
</content>
</entry>
<entry>
<title>bb_basename: handle mixed slashes correctly</title>
<updated>2017-08-24T07:37:25+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-07-17T23:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0933725e0f33fa93256623933813381c62611bfd'/>
<id>urn:sha1:0933725e0f33fa93256623933813381c62611bfd</id>
<content type='text'>
A path like C:/WINDOWS\system32 was handled incorrectly: it found the
forward slash, and then never bothered to look whether there was another
(back-)slash later on.

This fixes e.g. running BusyBox as C:/test\sh.exe

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>libbb: additional support for backslashes in paths</title>
<updated>2015-11-13T08:51:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-11-13T08:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ab879a41ab674129ef1593cda181cc8b64d0dadf'/>
<id>urn:sha1:ab879a41ab674129ef1593cda181cc8b64d0dadf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into merge</title>
<updated>2012-03-22T15:21:20+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2012-03-22T15:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2'/>
<id>urn:sha1:0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2</id>
<content type='text'>
Conflicts:
	coreutils/ls.c
	include/platform.h
	libbb/bb_basename.c
</content>
</entry>
</feed>
