From unknown Sun Aug 17 09:09:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30350 <30350@debbugs.gnu.org> To: bug#30350 <30350@debbugs.gnu.org> Subject: Status: 27.0.50; Newest master can't run processes on macOS Reply-To: bug#30350 <30350@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:09:10 +0000 retitle 30350 27.0.50; Newest master can't run processes on macOS reassign 30350 emacs submitter 30350 Philipp
For some reason the newest master can't seem to start subprocesses on macOS:
emacs -batch -Q --eval=3D'(call-process "/usr/bin/true")'=
Searching for program: Is a directory, /usr/bin/true
Needless to say, /usr/bin/true is a regular file.
commit 327d251f8= a857350a78029c31c7ab3f9797cc727
Author: Paul Egg= ert <eggert@cs.ucla.edu>
Date: =C2=A0 Sat Feb 3 12:10:19 20= 18 -0800
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/bin/true&qu= ot;)
>
> it works correctly, but then once you run
>
>=C2=A0 =C2=A0 =C2=A0(call-process "/usr/bin/true")
>
> file-accessible-directory-p incorrectly returns true on subsequent
> calls. Paul=E2=80=99s commit didn=E2=80=99t make any real changes to > file-accessible-directory-p so I suspect this problem is older.
In fact, I can replicate it on Emacs 25, so it=E2=80=99s an old bug.
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>
On 02/05/2018 11:18 AM, Alan Third wrote:
>
> Yes, it fixes the problem here.
>
> Is this a known issue with macOS?
It's news to me and it's not listed in the Gnulib portability gotch= a list.
What happens if you run the attached program on macOS? It creates a file
"file" and then tries to access it as a directory, which should n= ot work.