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 on Solaris 10, from all the systems we tested on. Anything Linux based had O_DIRECTORY since 1998. thanks, Pádraig