<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src, branch v9.3</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.3</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2023-04-13T19:19:09Z</updated>
<entry>
<title>copy: --debug: indicate if NUL detection is used with SEEK_HOLE</title>
<updated>2023-04-13T19:19:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-04-13T12:15:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=854c90ecc031232a3bd6d94b149f84d5c2e1ab11'/>
<id>urn:sha1:854c90ecc031232a3bd6d94b149f84d5c2e1ab11</id>
<content type='text'>
* src/copy.c (sparse_copy): With --sparse=always we also detect
NULs in extents we're copying, so indicate this with --debug.
</content>
</entry>
<entry>
<title>build: fix _Noreturn compilation failure</title>
<updated>2023-04-10T18:45:14Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-04-10T18:36:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ae4dace2ec591fafd501badbcf75d51d2260cfbe'/>
<id>urn:sha1:ae4dace2ec591fafd501badbcf75d51d2260cfbe</id>
<content type='text'>
Fix a build failure seen on gcc 3.4 on Solaris 10 at least.

* src/crctab.c: Ensure we include config.h for all compilation units.
This is now required for new _Noreturn usage in gnulib for stdint.h.
* src/cksum.c: Update generation code to ensure config.h included.
* cfg.mk: Remove crctab.c exclusion from the config.h check.
</content>
</entry>
<entry>
<title>wc: ensure we update file offset</title>
<updated>2023-04-08T11:19:40Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-02-05T19:52:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ce630dfc7ef32ff7e35c627bd061a45ce9053d9d'/>
<id>urn:sha1:ce630dfc7ef32ff7e35c627bd061a45ce9053d9d</id>
<content type='text'>
* src/wc.c (wc): Update the offset when not reading,
and do read if we can't update the offset.
* tests/misc/wc-proc.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/61300
</content>
</entry>
<entry>
<title>cp,mv: issue "skipped" messages when skipping files</title>
<updated>2023-04-08T11:11:58Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-04-07T09:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f6c21f6d3addb6461c41af612e73fbb15d21545f'/>
<id>urn:sha1:f6c21f6d3addb6461c41af612e73fbb15d21545f</id>
<content type='text'>
* NEWS: Mention the change in behavior to issue a "not replaced"
error diagnostic with -n, and the "skipped" message with -v.
* src/copy.c (copy_internal): Adjust to output the "skipped" messages
depending on -i, -n, -u.
* tests/cp/cp-i.sh: Adjust accordingly.
* tests/mv/mv-n.sh: Likewise.
</content>
</entry>
<entry>
<title>cp,mv: add --update=none to always skip existing files</title>
<updated>2023-04-08T11:11:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-04-01T15:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=db28af406f311ac8f78604cc5906613866aecef5'/>
<id>urn:sha1:db28af406f311ac8f78604cc5906613866aecef5</id>
<content type='text'>
Add --update=none which is equivalent to the --no-clobber behavior
from before coreutils 9.2.  I.e. existing files are unconditionally
skipped, and them not being replaced does not affect the exit status.

* src/copy.h [enum Update_type]: A new type to support parameters
to the --update command line option.
[enum Interactive]: Add I_ALWAYS_SKIP.
* src/copy.c: Treat I_ALWAYS_SKIP like I_ALWAYS_NO (-n),
except that we don't fail when skipping.
* src/system.h (emit_update_parameters_note): A new function
to output the description of the new --update parameters.
* src/cp.c (main): Parse --update arguments, ensuring that
-n takes precedence if specified.
(usage): Describe the new option.  Also allude that
-u is related in the -n description.
* src/mv.c: Accept the new --update parameters and
update usage() accordingly.
* doc/coreutils.texi (cp invocation): Describe the new --update
parameters.  Also reference --update from the --no-clobber description.
(mv invocation): Likewise.
* tests/mv/update.sh: Test the new parameters.
* NEWS: Mention the new feature.
Addresses https://bugs.gnu.org/62572
</content>
</entry>
<entry>
<title>wc: diagnose overflow of total counts</title>
<updated>2023-03-31T10:58:49Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-29T14:29:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7ad749886cddc76860bd8cfc38a408032a5e4c99'/>
<id>urn:sha1:7ad749886cddc76860bd8cfc38a408032a5e4c99</id>
<content type='text'>
* src/wc.c (wc): Use INT_ADD_WRAPV() to detect overflow.
(main): Upon overflow, saturate the total, print a diagnostic,
and set exit status.
* tests/misc/wc-total.sh: Add a test case, which operates
on BTRFS and 64 bit systems at least.
Reported at https://bugs.debian.org/1027100
</content>
</entry>
<entry>
<title>dircolors: diagnose read errors</title>
<updated>2023-03-28T13:24:29Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-28T13:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a9bd274616a8d2e99736b498e657cda4e6954f3f'/>
<id>urn:sha1:a9bd274616a8d2e99736b498e657cda4e6954f3f</id>
<content type='text'>
* NEWS: Mention the fix.
* src/dircolors.c: Fail upon read error from getline().
* tests/misc/dircolors.sh: Add a new test.
* tests/local.mk: Reference the new test.
</content>
</entry>
<entry>
<title>date: diagnose -f read errors</title>
<updated>2023-03-28T08:53:06Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2023-03-28T08:52:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9c5e542fd190a14431092e3b6cb45d18fe95f26f'/>
<id>urn:sha1:9c5e542fd190a14431092e3b6cb45d18fe95f26f</id>
<content type='text'>
* src/date.c (batch_convert): Diagnose read errors, fixing Bug#62497.
</content>
</entry>
<entry>
<title>cp: clarify commentary</title>
<updated>2023-03-25T20:20:16Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2023-03-25T16:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6272817de007d236f82616df5916be37333ba163'/>
<id>urn:sha1:6272817de007d236f82616df5916be37333ba163</id>
<content type='text'>
* src/copy.c: Make comments a bit clearer.
</content>
</entry>
<entry>
<title>copy: fix --reflink=auto to fallback in more cases</title>
<updated>2023-03-24T13:12:51Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-23T13:19:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=093a8b4bfaba60005f14493ce7ef11ed665a0176'/>
<id>urn:sha1:093a8b4bfaba60005f14493ce7ef11ed665a0176</id>
<content type='text'>
On restricted systems like android or some containers,
FICLONE could return EPERM, EACCES, or ENOTTY,
which would have induced the command to fail to copy
rather than falling back to a more standard copy.

* src/copy.c (is_terminal_failure): A new function refactored
from handle_clone_fail().
(is_CLONENOTSUP): Merge in the handling of EACCES, ENOTTY, EPERM
as they also pertain to determination of whether cloning is supported
if we ever use this function in that context.
(handle_clone_fail): Use is_terminal_failure() in all cases,
so that we assume a terminal failure in less errno cases.
* NEWS: Mention the bug fix.
Addresses https://bugs.gnu.org/62404
</content>
</entry>
</feed>
