<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/local.mk, branch v9.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2025-03-10T12:46:14Z</updated>
<entry>
<title>tests: dd: ensure posix_fadvise errors are handled</title>
<updated>2025-03-10T12:46:14Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-03-10T12:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2b0887fdd507337c58ba964c283d73336a8da2cc'/>
<id>urn:sha1:2b0887fdd507337c58ba964c283d73336a8da2cc</id>
<content type='text'>
* tests/dd/nocache_fail.sh: Add a test case for the recent fix.
</content>
</entry>
<entry>
<title>tail: honor --pid with fifos</title>
<updated>2025-01-08T12:11:43Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-10-18T12:40:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=177fcec66d50b7e7ee351aad417a0bd9e0eb4673'/>
<id>urn:sha1:177fcec66d50b7e7ee351aad417a0bd9e0eb4673</id>
<content type='text'>
* src/tail.c (tail_file): Open files with O_NONBLOCK
if we might need async processing.
(pipe_bytes): Ignore EAGAIN read() errors.
(pipe_lines): Likewise.
* tests/tail/pid-pipe.sh: Add a new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the bug fix.
Reported by Berhard Voelker.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2025-01-01T09:33:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-01T09:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=28b176085f04a6227d7fadd28a129b5cb02dfbf5'/>
<id>urn:sha1:28b176085f04a6227d7fadd28a129b5cb02dfbf5</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>tests: avoid false failure with --disable-selinux</title>
<updated>2024-11-12T11:20:47Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-11-11T19:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8f4fce1751cabc48f25c3e17a324ac6d1c783de4'/>
<id>urn:sha1:8f4fce1751cabc48f25c3e17a324ac6d1c783de4</id>
<content type='text'>
* tests/ls/selinux-segfault.sh: Move recent addition to ...
* tests/ls/selinux.sh: ... this new test that uses require_selinux_
to skip appropriately when we've built without selinux support.
Also add a non root test that checks we output '.' along with the
mode for files, to indicate a security context is present.
* tests/local.mk (Reference the new test).
</content>
</entry>
<entry>
<title>tests: ls: don't always skip a capability test</title>
<updated>2024-10-03T11:41:37Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-10-03T11:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=96100139fc9c05c0ad2236a240783543f0778b85'/>
<id>urn:sha1:96100139fc9c05c0ad2236a240783543f0778b85</id>
<content type='text'>
* tests/ls/no-cap.sh: Move to being a root only test, since
commit v9.5-132-g2a6bed933 we now need to call setcap
to make the test effective.  Otherwise we would have always
just skipped the test.
</content>
</entry>
<entry>
<title>factor: port to platforms</title>
<updated>2024-09-28T00:42:58Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2024-09-25T22:59:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5867465510d023ece420e9921fc1034e3abd6455'/>
<id>urn:sha1:5867465510d023ece420e9921fc1034e3abd6455</id>
<content type='text'>
* src/factor.c (mod2): Work even if cntd &lt;= cnta.  The old version
of the code assumed that shifts by N had unspecified behavior
unless 0 &lt;= N &lt; wordsize.  Although this assumption is portable to
all known practical platforms, the C standard says these shifts
have undefined behavior and some pedantic platforms check this.
* tests/factor/create-test.sh:
* tests/local.mk (factor_tests): New test t37.
</content>
</entry>
<entry>
<title>printf: add indexed argument support</title>
<updated>2024-09-13T16:29:02Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-09-11T15:07:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5cecd703e57b2e1301767d82cbe5bb01cae88472'/>
<id>urn:sha1:5cecd703e57b2e1301767d82cbe5bb01cae88472</id>
<content type='text'>
* src/printf.c (print_formatted): Add support for %i$ indexed args.
* tests/printf/printf-indexed.sh: Add a new file of test cases.
* tests/local.mk: Reference the new test file.
* doc/coreutils.texi (printf invocation): Mention how mixed
processing of indexed and sequential references are supported,
unlike the printf(2) library function.
* NEWS: Mention the new (POSIX:2024) feature.
Addresses https://bugs.gnu.org/73068
</content>
</entry>
<entry>
<title>mv: new option --exchange</title>
<updated>2024-03-20T21:40:29Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2024-03-20T21:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5d3fd24f4286d422482dd1697c9fe1bfa30f608e'/>
<id>urn:sha1:5d3fd24f4286d422482dd1697c9fe1bfa30f608e</id>
<content type='text'>
* src/copy.h (struct cp_options): New member 'exchange'.
* src/copy.c (copy_internal): Support the new member.
* src/mv.c (EXCHANGE_OPTION): New constant.
(long_options): Add --exchange.
(usage): Document --exchange.
(main): Support --exchange.
* tests/mv/mv-exchange.sh: New test case.
* tests/local.mk (all_tests): Add it.
</content>
</entry>
<entry>
<title>chmod: add support for -h, -H,-L,-P, --dereference options</title>
<updated>2024-03-19T23:43:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-28T08:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=07a69fc3ba717b879218592db685a1c79869cb28'/>
<id>urn:sha1:07a69fc3ba717b879218592db685a1c79869cb28</id>
<content type='text'>
There have been various requests to add -h to avoid following symlinks
for security reasons.  This wasn't provided previously as chmod(1)
already ignored symlinks unless specified on the command line.
Note chmod defaults to -H mode rather than the chown default of -P,
as usually chown can work directly on symlinks and so defaults
to not traversing those specified on the command line.
Note FreeBSD chmod does default to -P mode, but we retain the -H mode
default also for compatibility with existing chmod behavior.

Adding -HLP will allow chmod to disable traversing CLI symlinks to dirs.
Adding -h will allow to disable following CLI symlinks to files/dirs,
  also operating on all symlinks on systems that support that.
Adding --dereference will be significant with -H (the default).  I.e.
  symlinks to dirs not recursed, but symlinks are dereferenced.
Adding these options will also be consistent with chown(1), chgrp(1),
and chmod(1) on other systems.

Note since chmod(1) currently ignores symlinks by default,
and -h is primarily a mechanism to avoid following symlinks, rather than
for operating on the symlink itself, we make -h try to chmod a symlink,
but ignore ENOTSUP.  In that way we're consistent with chown(1)
where it also ignores ENOTSUP for symlinks, and we don't fail when
trying to be extra secure with command line params.

* doc/coreutils.texi (chmod invocation): Reference the -H,-L,-P
descriptions, and adjust the corresponding macros to say
the default is -H or -P as appropriate.
Add --dereference and -h,--no-dereference descriptions.
* man/chmod.x: Adjust discussion of symlink handling.
* src/chmod.c (main): Accept new options and set
fts flags appropriately.
(process_file): Process / dereference symlinks as necessary.
* src/system.h (emit_symlink_recurse_options): A new function
refactored from chown.c and chmod.c usage().
* tests/chmod/symlinks.sh: New test for the new options.
* tests/local.mk: Reference the new test.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>mv: revert add --swap (-x) option</title>
<updated>2024-03-05T21:34:00Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-03-05T21:31:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9d8890d87231d477ca78269a4fce9242ec0624f1'/>
<id>urn:sha1:9d8890d87231d477ca78269a4fce9242ec0624f1</id>
<content type='text'>
Since this functionality is recently available
in the exch(1) utility from util-linux,
it was thought best not to complicate mv with it.

This reverts commit 6cd2d5e5335b5c286ff39e154e9dd38ba6923775
</content>
</entry>
</feed>
