On 16/03/19 14:08, Pádraig Brady wrote: > On 16/03/19 11:27, Paul Eggert wrote: >> Nelson H. F. Beebe wrote: >> >>> touch foo bar && ls -ld foo bar && ln -f foo bar >>> ... >>> -rw-rw-r-- 1 bowman sysstaff 0 Mar 15 15:55 bar >>> -rw-rw-r-- 1 bowman sysstaff 0 Mar 15 15:55 foo >>> ln: failed to access 'bar/foo': Not a directory >> >> Thanks for reporting that. It's a serious error on Solaris 10, or on any >> platform lacking support for the O_DIRECTORY flag standardized in >> POSIX.1-2008. >> >> I installed the attached patch. > > Looks good thanks. > >> We should probably generate a new coreutils release soon. > > Well not if just Solaris 10 is impacted I think. > Old FreeBSD may be affected, but I only see ln failures
Very old FreeBSD https://github.com/freebsd/freebsd/commit/9ab7de87 > on Solaris 10, from all the systems we tested on. > Anything Linux based had O_DIRECTORY since 1998. I pushed a NEWS entry for the fix: https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.31-5-g4a21102 cheers, Pádraig
