From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
On Sun, Feb 04, 2018 at 09:28:12PM +0000, Philipp Stephani wrote:
> Alan Third <al= an@idiocy.org> schrieb am So., 4. Feb. 2018 um 22:12 Uhr:
>
> > On Sun, Feb 04, 2018 at 09:06:15PM +0000, Alan Third wrote:
> > > Oddly if you do
> > >
> > >=C2=A0 =C2=A0 =C2=A0(file-accessible-directory-p "/usr/b= in/true")
> > >
> > > it works correctly, but then once you run
> > >
> > >=C2=A0 =C2=A0 =C2=A0(call-process "/usr/bin/true")<= br> > > >
> > > file-accessible-directory-p incorrectly returns true on subs= equent
> > > calls. Paul=E2=80=99s commit didn=E2=80=99t make any real ch= anges to
> > > file-accessible-directory-p so I suspect this problem is old= er.
> >
> > In fact, I can replicate it on Emacs 25, so it=E2=80=99s an old b= ug.
> >
> >
> This is then a different bug; could you report it as a new one?
It=E2=80=99s actually all the same bug. Paul=E2=80=99s change made file-dir= ectory-p
use file-accessible-directory-p, and it=E2=80=99s playing up.
It looks like the root cause is faccessat returning 0 for
=E2=80=98/usr/bin/true/.=E2=80=99 when it should probably be returning -1.<= br>