<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2026-04-17T15:15:08Z</updated>
<entry>
<title>yes: make operation independent of pipe size</title>
<updated>2026-04-17T15:15:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-17T13:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3cbe0491bab713e07cf0b1e51f5e3dad2b707215'/>
<id>urn:sha1:3cbe0491bab713e07cf0b1e51f5e3dad2b707215</id>
<content type='text'>
* src/yes.c (splice_write): Always drain what we've written
to an internal pipe, so there is no possibility of vmsplice() blocking.
I.e., be defensive in the case that fcntl() fails, and
our default buffer size (currently 16kiB) is larger than the pipe.
https://github.com/coreutils/coreutils/issues/253
</content>
</entry>
<entry>
<title>build: fix build failure on AIX</title>
<updated>2026-04-16T21:05:13Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-16T21:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5597a275c2b60610090b40dd64ff5904dd393f41'/>
<id>urn:sha1:5597a275c2b60610090b40dd64ff5904dd393f41</id>
<content type='text'>
* m4/jm-macros.m4: AIX has a splice() function for TCP,
so check for vmsplice() instead.
* src/splice.h: Define HAVE_SPLICE if vmsplice available.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>cksum: fix --length validation on 32 bit platforms</title>
<updated>2026-04-16T19:40:34Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-16T19:37:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=852c056889bb39207af3c8af80eeefd2e98b29f3'/>
<id>urn:sha1:852c056889bb39207af3c8af80eeefd2e98b29f3</id>
<content type='text'>
Fix an unreleased issue due to the recent change
to using idx_t in commit v9.10-91-g02983e493

* src/cksum.c (main): Limit the possible return to
the range supported by idx_t.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>df: improve detection of duplicate entries</title>
<updated>2026-04-15T11:56:16Z</updated>
<author>
<name>Lukáš Zaoral</name>
<email>lzaoral@redhat.com</email>
</author>
<published>2026-04-14T12:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f6fda635bdc8ea7b6665fa25f7ccc78484a47679'/>
<id>urn:sha1:f6fda635bdc8ea7b6665fa25f7ccc78484a47679</id>
<content type='text'>
Do not compare only with the latest entry for given device id but also
all previously saved entries with the same id.

* src/df.c (struct devlist): Add next_same_dev struct member.
(filter_mount_list): Iterate over next_same_dev to find duplicates.
* tests/df/skip-duplicates.sh: Add test cases.
* NEWS: Mention the improvement.
https://redhat.atlassian.net/browse/RHEL-5649
</content>
</entry>
<entry>
<title>mktemp: prefer rmdir and unlink to remove</title>
<updated>2026-04-11T16:58:13Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-11T03:29:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=79a6da3be7a815f252ba3195518c9f115cb5ffa3'/>
<id>urn:sha1:79a6da3be7a815f252ba3195518c9f115cb5ffa3</id>
<content type='text'>
This avoids the following behavior:

    $ strace -e silence=exit -e trace=unlink,rmdir \
        mktemp -d &gt; /dev/full
    unlink("/tmp/tmp.ZBuPmS9ZGD") = -1 EISDIR (Is a directory)
    rmdir("/tmp/tmp.ZBuPmS9ZGD")  = 0
    mktemp: write error: No space left on device

In the above invocation we know that we created a directory, so we
should not remove a regular file that must have been created by another
process:

    $ strace -e silence=exit -e trace=unlink,rmdir \
        ./src/mktemp -d &gt; /dev/full
    rmdir("/tmp/tmp.hGbME1HmJr") = 0
    mktemp: write error: No space left on device

* src/mktemp.c (main): Prefer rmdir and unlink depending on whether we
created a directory or regular file.
* bootstrap.conf (gnulib_modules): Remove the remove module.
</content>
</entry>
<entry>
<title>cat: avoid redundant pipe creation and resizing</title>
<updated>2026-04-11T05:44:22Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-10T02:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9a3479f1ea026f67f36dd690871f85e5163fc6c5'/>
<id>urn:sha1:9a3479f1ea026f67f36dd690871f85e5163fc6c5</id>
<content type='text'>
* src/cat.c (splice_cat): Don't bother resizing input as it generally
doesn't help perf, and also save an fstat per input. Don't close the
intermediate pipe once created, unless there is an error reading from
it.

Co-authored-by: Pádraig Brady &lt;P@draigBrady.com&gt;
</content>
</entry>
<entry>
<title>env: avoid locking standard output for each printed variable</title>
<updated>2026-04-10T04:59:12Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-10T04:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f634724b8fcd2ffb0981f651f7eddb4700f498db'/>
<id>urn:sha1:f634724b8fcd2ffb0981f651f7eddb4700f498db</id>
<content type='text'>
* src/env.c (main): Use fputs and putchar instead of printf.
</content>
</entry>
<entry>
<title>printenv: avoid locking standard output for each printed variable</title>
<updated>2026-04-10T04:53:28Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-10T04:53:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77ba5a9815a17104c67e61632a5ce79f7b537b8f'/>
<id>urn:sha1:77ba5a9815a17104c67e61632a5ce79f7b537b8f</id>
<content type='text'>
* src/printenv.c (main): Use fputs and putchar instead of printf.
</content>
</entry>
<entry>
<title>maint: remove last remaining assert()</title>
<updated>2026-04-09T20:36:43Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-09T20:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d0fa892c16d5e3b9b7d42642a698b250b1df992f'/>
<id>urn:sha1:d0fa892c16d5e3b9b7d42642a698b250b1df992f</id>
<content type='text'>
* src/split.c (bytes_chunk_extract): Prefer affirm to assert,
as it allows for better static checking when compiling with -DNDEBUG.
</content>
</entry>
<entry>
<title>maint: cat: avoid coverity NULL dreference warning</title>
<updated>2026-04-09T20:25:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-09T20:23:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d27e48c1223bb9b823f736e1ab8793c756e3165a'/>
<id>urn:sha1:d27e48c1223bb9b823f736e1ab8793c756e3165a</id>
<content type='text'>
* src/cat.c (ensure_buf_size): Affirm we won't return NULL;
</content>
</entry>
</feed>
