<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/coreutils/ls.c, 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-06-22T10:36:43+00:00</updated>
<entry>
<title>Fix the flags for stat (again) (#601)</title>
<updated>2026-06-22T10:36:43+00:00</updated>
<author>
<name>mbartlett21</name>
<email>29034492+mbartlett21@users.noreply.github.com</email>
</author>
<published>2026-06-22T10:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b37062304275debaadf71c9f3e5f4e9076f5eda6'/>
<id>urn:sha1:b37062304275debaadf71c9f3e5f4e9076f5eda6</id>
<content type='text'>
* Revert "find: reset stat(2) flags before terminating"

This reverts commit 228ee18fbe8cf408440e7bbe91db4ef201312983.

* test: fix flags for stat with NOFORK

test is a NOFORK applet, so the flags under mingw_stat may not have been
reset before calling it. We have it so it also restores the flags after,
since it could be called in the middle of another applet.

This also needed a way to retrieve the flags, so they are just done
through the return value.

* Add comments about not having to restore flags

Just for future reference

* lineedit: use new flag restoring

* win32: simplify mingw_access calling

Since we now have a way to get the previous flags, mingw_access can be
changed to ignore any stat flags

* stat: comments from PR

Adds 32 bytes.</content>
</entry>
<entry>
<title>win32: allow stat(2) to skip costly check for execute</title>
<updated>2026-05-18T06:55:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-05-18T06:55:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1fb1a65064748a54fba4bf4b5e8700f8e61f003f'/>
<id>urn:sha1:1fb1a65064748a54fba4bf4b5e8700f8e61f003f</id>
<content type='text'>
If 'ls' is invoked without the '-l' option (or something that's
equivalent) and colour output isn't required, there's no need to
perform the expensive check for execute permission.

Allow 'ls' to inform stat(2) not to call has_exec_format().  This
has been combined with the existing mechanism to enable counting
subdirectories.

With this change the command 'ls | wc -l' used in issue #589
doesn't perform the test which upset Windows' anti-malware thing.

Adds 32-48 bytes.

(GitHub issue #589)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-11-11T10:00:52+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-11-11T10:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0ee678e0d1d465f3d83fb22a4ec4e7ca33686284'/>
<id>urn:sha1:0ee678e0d1d465f3d83fb22a4ec4e7ca33686284</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ls: restore functionality of --color</title>
<updated>2025-11-08T06:42:34+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-10-23T10:22:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d549c8be8636dd523358565e573eeba4fc1f928d'/>
<id>urn:sha1:d549c8be8636dd523358565e573eeba4fc1f928d</id>
<content type='text'>
Since commit 551bfdb97 (ls: implement -q, fix -w0, reduce startup
time) the '--color' option behaves as though the default argument
'always' had been specified.

This is due to an explicit short option for '--color' being given,
but without specifying that an argument is expected.

function                                             old     new   delta
.rodata                                           106027  106029      +2

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ls: restore functionality of --color</title>
<updated>2025-09-16T11:41:35+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-09-16T11:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7299e1a11902fb51bca4b274f271c224d9f5d15b'/>
<id>urn:sha1:7299e1a11902fb51bca4b274f271c224d9f5d15b</id>
<content type='text'>
Since upstream commit 551bfdb97 (ls: implement -q, fix -w0,
reduce startup time) was merged the '--color' option behaves as
though the default argument 'always' had been specified.

This is due to an explict short option for '--color' being given,
but without specifying that an argument is expected.

(GitHub issue #522)
</content>
</entry>
<entry>
<title>ls: add '-g' and '-C' to usage message</title>
<updated>2025-08-26T08:55:24+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-26T08:55:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f5764865cb846ad953b8a7082330f9b47ebad5e8'/>
<id>urn:sha1:f5764865cb846ad953b8a7082330f9b47ebad5e8</id>
<content type='text'>
For some reason upstream doesn't include the '-g' option in the
usage message for 'ls'.  Commit 551bfdb97 (ls: implement -q, fix
-w0, reduce startup time) added a description but left it
commented out.  It didn't add 'g' to the list of options.

'C' appears in the list but its description is commented out.

Adds 24-32 bytes.

(GitHub issue #517)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-08-15T08:00:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-15T08:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=01ff9c492111cf7d51ad074629d6e72bc69fc149'/>
<id>urn:sha1:01ff9c492111cf7d51ad074629d6e72bc69fc149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ls: don't do unnecessary tty operations when called from ftpd</title>
<updated>2025-08-01T16:16:46+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-08-01T16:16:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2d7ff2c909c6dce95a8780d00e2089f0c507dd25'/>
<id>urn:sha1:2d7ff2c909c6dce95a8780d00e2089f0c507dd25</id>
<content type='text'>
function                                             old     new   delta
ls_main                                              660     690     +30

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ls: code shrink</title>
<updated>2025-08-01T10:10:22+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-08-01T10:06:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4f43bda9472aeea372f6ab30bbef229b6c5f2c76'/>
<id>urn:sha1:4f43bda9472aeea372f6ab30bbef229b6c5f2c76</id>
<content type='text'>
Looks like gcc can figure this out by itself, but let's be explicit

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ls: fix -Q to match GNU</title>
<updated>2025-07-31T23:02:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-07-31T23:02:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4f3a56dc12a2126bdacff73f1cfe586d06e800c0'/>
<id>urn:sha1:4f3a56dc12a2126bdacff73f1cfe586d06e800c0</id>
<content type='text'>
function                                             old     new   delta
print_name                                           137     229     +92
display_files                                        375     402     +27
c_escape_conv_str00                                    -      24     +24
display                                             1476    1485      +9
conv_str                                              33       -     -33
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 152/-33)           Total: 119 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
