cp,mv,install: avoid EACCES with non directory destination
commit52139fd69034446695af60c8064a38e5e795227c
authorPádraig Brady <P@draigBrady.com>
Sun, 10 Apr 2022 15:59:40 +0000 (10 16:59 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 12 Apr 2022 23:37:12 +0000 (13 00:37 +0100)
tree4cae09f5104ba1341d4517c85851a5be3e3ea675
parent6e9bf0765fb8931eddfd17736cb0554192c26fad
cp,mv,install: avoid EACCES with non directory destination

* 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.
NEWS
src/system.h