<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src, branch v9.1</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.1</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2022-04-14T12:37:23Z</updated>
<entry>
<title>build: copy: fix build on macos 10.12</title>
<updated>2022-04-14T12:37:23Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-14T12:35:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bcfbcef928cd540e53d35fc2869d9def2fedeb84'/>
<id>urn:sha1:bcfbcef928cd540e53d35fc2869d9def2fedeb84</id>
<content type='text'>
* src/copy.c (copy_reg): Handle the case where CLONE_NOOWNERCOPY
is not defined.
Reported by Jeffrey Walton
</content>
</entry>
<entry>
<title>tail: detect closed stdout on Solaris</title>
<updated>2022-04-13T19:10:14Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-13T16:31:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=87d5f1e17e32176b262a13262ac3ec16e1970596'/>
<id>urn:sha1:87d5f1e17e32176b262a13262ac3ec16e1970596</id>
<content type='text'>
* src/tail.c (check_output_alive): Use poll() on Solaris.
Also handle POLLHUP, which Solaris returns in this case.
* tests/tail-2/pipe-f.sh: Use `head -n2` rather than `sed 2q`
as Solaris sed does not exit in this case.
* NEWS: Mention the improvement.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>cp,mv,install: avoid excess stat calls on non-GNU</title>
<updated>2022-04-13T06:57:15Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2022-04-13T06:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=197a570ff0a17db5c8e003645d154e57bddc70ce'/>
<id>urn:sha1:197a570ff0a17db5c8e003645d154e57bddc70ce</id>
<content type='text'>
* gl/lib/targetdir.c (target_directory_operand): New arg ST.
All callers changed.
* src/cp.c (do_copy):
* src/mv.c (main):
Avoid unnecessary stat call if target_directory_operand already
got the status.
</content>
</entry>
<entry>
<title>cp,mv,install: modularize targetdir</title>
<updated>2022-04-13T06:57:15Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2022-04-13T06:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=30c932a3098146128acfd839589f308ec1bb116d'/>
<id>urn:sha1:30c932a3098146128acfd839589f308ec1bb116d</id>
<content type='text'>
Move target directory code out of system.h to a new targetdir module.
This doesn’t change functionality.
* bootstrap.conf (gnulib_modules): Add targetdir.
* src/cp.c, src/install.c, src/mv.c: Include targetdir.h.
* src/system.h (must_be_working_directory, target_directory_operand)
(targetdir_dirfd_valid): Move from here ...
* gl/lib/targetdir.c, gl/lib/targetdir.h, gl/modules/targetdir:
... to these new files.
</content>
</entry>
<entry>
<title>cp,mv,install: avoid EACCES with non directory destination</title>
<updated>2022-04-12T23:37:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-10T15:59:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=52139fd69034446695af60c8064a38e5e795227c'/>
<id>urn:sha1:52139fd69034446695af60c8064a38e5e795227c</id>
<content type='text'>
* src/system.h (target_directory_operand): Also check with stat()
on systems with O_SEARCH, to avoid open("file", O_SEARCH|O_DIRECTORY)
returning EACCES rather than ENOTDIR, which was seen on Solaris 11.4
when operating on non dirs without execute bit set.
* NEWS: Remove related bug entry, as that issue was only introduced
after coreutils v9.0 was released.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>sync: support syncing files on cygwin</title>
<updated>2022-04-12T23:36:25Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-12T11:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6e9bf0765fb8931eddfd17736cb0554192c26fad'/>
<id>urn:sha1:6e9bf0765fb8931eddfd17736cb0554192c26fad</id>
<content type='text'>
* src/sync.c (sync_arg): Similarly to AIX, Cygwin 2.9.0
was seen to need write access to have permission to sync a file.
</content>
</entry>
<entry>
<title>cp,mv,install: avoid opening non directory destination</title>
<updated>2022-04-09T21:21:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-09T14:46:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cc01b8a8f43bd1e02339322595f7a20e72a8c155'/>
<id>urn:sha1:cc01b8a8f43bd1e02339322595f7a20e72a8c155</id>
<content type='text'>
commit v9.0-66-ge2daa8f79 introduced an issue, for example
where cp could hang when overwriting a destination fifo,
when it would try to open() the fifo on systems
like Solaris 10 that didn't support the O_DIRECTORY flag.

This is still racy on such systems, but only in the
case where a directory is replaced by a fifo in
the small window between stat() and open().

* src/system.h (target_directory_operand): On systems without
O_DIRECTORY, ensure the file is a directory before attempting to open().
* tests/cp/special-f.sh: Protect cp with timeout(1),
as cp was seen to hang when trying to overwrite an existing fifo.
* NEWS: Mention the bug fix.
</content>
</entry>
<entry>
<title>doc: install --compare: clarify mode of operation</title>
<updated>2022-04-09T12:00:52Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-09T11:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=54bec51754c963562378c85b0e1561b84c326785'/>
<id>urn:sha1:54bec51754c963562378c85b0e1561b84c326785</id>
<content type='text'>
* doc/coreutils.texi (install invocation): For the --compare option,
clarify that the ownership or permissions of the source files don't
matter.  Also don't imply --owner or --group need to be specified
for --compare to be effective.
* src/install.c (usage): Add more detail on what's being compared.
Fixes https://bugs.gnu.org/50889
</content>
</entry>
<entry>
<title>build: update gnulib submodule to latest</title>
<updated>2022-04-07T16:38:17Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-07T16:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73c0c15225f75c672e42de41933c7a26fd284888'/>
<id>urn:sha1:73c0c15225f75c672e42de41933c7a26fd284888</id>
<content type='text'>
* gnulib: Update to latest
* src/copy.c: Replace deprecated {l,}statat(), with fstatat().
* src/cp.c: Likewise.
* src/install.c: Likewise.
* src/remove.c: Likewise.
</content>
</entry>
<entry>
<title>factor: improve support on RISCV and loongson</title>
<updated>2022-04-04T12:41:32Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-04-04T12:41:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=224c1fee6901183e8616661da88a30ee1ee6d0b3'/>
<id>urn:sha1:224c1fee6901183e8616661da88a30ee1ee6d0b3</id>
<content type='text'>
* src/longlong.h: Pull in RISCV fix and loongarch64 support from
https://gmplib.org/repo/gmp/log/tip/longlong.h
</content>
</entry>
</feed>
