From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#37576: 27.0.50; [Windows] "Permission denied" error from call-process if executable not found Date: Wed, 2 Oct 2019 18:09:14 +0100 Message-ID: References: <87a7aja29z.fsf@igel.home> <875zl79zqk.fsf@igel.home> <838sq3856a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e3e6260593f0888f" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102174"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Juanma Barranquero , Andreas Schwab , 37576@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 02 19:22:54 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFiKz-000QU0-Uy for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 19:22:54 +0200 Original-Received: from localhost ([::1]:57961 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFiKy-0004ve-KC for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 13:22:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37441) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFi8a-0000gY-6l for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 13:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFi8Z-0002Fs-07 for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 13:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFi8Y-0002Fm-Tw for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 13:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFi8Y-0005J6-Ln for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Oct 2019 17:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37576 X-GNU-PR-Package: emacs Original-Received: via spool by 37576-submit@debbugs.gnu.org id=B37576.157003619020374 (code B ref 37576); Wed, 02 Oct 2019 17:10:02 +0000 Original-Received: (at 37576) by debbugs.gnu.org; 2 Oct 2019 17:09:50 +0000 Original-Received: from localhost ([127.0.0.1]:38245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFi8M-0005IX-4N for submit@debbugs.gnu.org; Wed, 02 Oct 2019 13:09:50 -0400 Original-Received: from mail-oi1-f180.google.com ([209.85.167.180]:37111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFi8K-0005IH-Fn for 37576@debbugs.gnu.org; Wed, 02 Oct 2019 13:09:49 -0400 Original-Received: by mail-oi1-f180.google.com with SMTP id i16so21594oie.4 for <37576@debbugs.gnu.org>; Wed, 02 Oct 2019 10:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qDrzkZs92u8I3nEfUkCeXRdAMwljmG6cEcTlUxDQCI4=; b=fRaEfPtMYe00X7NZFCFtiCwO3auOAJGur7+pOMvWsYVcg07hxga0Tnl3444AsTBAki 5NLBQXvnSSpmgLu1uxhr7jZf6CRnf5dHBWseombFnsoHuDak/9iZgDroprQWc7xiest0 JcmvVskuNzOyHgVkJptemXlqZpGN6UMdM7RYkNU5274pI7s2143qAPnfxyJCrje0igqd 3rj0ifwMosqLODf5+ZgSXZR4EpFLtfE4WEPMVZ95E6pROYT1WsJ8FG9iGLHwQTQQa0oT T79GtAHYbeM462gOQ6o4wSqAawQyKy+xPK7sJH1Ijj+pfOMgBHP9p7teYm9i/IXIyzZK OH+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qDrzkZs92u8I3nEfUkCeXRdAMwljmG6cEcTlUxDQCI4=; b=fBIc37uwnuiioh79q//pCODFfDpN72fqb+twFdB88dKJvlLUtuAmmVYaRcl8MguCtZ b7+1NdIbTVrW+V3AHn+OeMUbQpAV026wI4OJuhwu1v0JQ4Qnd1dnHV44mJjGUJ3o6zq/ TktENTaXpRfVQhUG0jREbi8gLawzmoOl6hVrn8m6/ZmVEcRgSQ4B8o/yhM38QU7eA8Y4 1FBPE9yfNYLIhg1dY4PFFVoflHhSq6iHP4eKgAV48bAC2l23b/WrjV58ji4TtHVH9Iw+ WtKmSqYsg4wknAScL5sqxSIpTTT2Thq+7mq/JMBdvmhxQ/hhWxl6vRtfYt9EXTO39FCa Kseg== X-Gm-Message-State: APjAAAXitdUBX/zndFyk7coabXwj4+q9Gg+7Tgdng7xJLQ2Ytn3s3Soo LIKOUSE+bsgAl6Dcosmds9Tb+GVZi3S57jUL2ss= X-Google-Smtp-Source: APXvYqyDKg8K0ObiaV/1iV9RYsxsGsuyGgVUPIUmYssIEEA53dgJY1ZWszFF/JoCoG3z9JoywMO75HCb/J89N8wUCPs= X-Received: by 2002:aca:c5cb:: with SMTP id v194mr3547754oif.106.1570036181622; Wed, 02 Oct 2019 10:09:41 -0700 (PDT) In-Reply-To: <838sq3856a.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168168 Archived-At: --000000000000e3e6260593f0888f Content-Type: text/plain; charset="UTF-8" On Wed, 2 Oct 2019 at 17:48, Eli Zaretskii wrote: > > From: Andreas Schwab > > Date: Wed, 02 Oct 2019 13:02:43 +0200 > > Cc: Richard Copley , 37576@debbugs.gnu.org > > > > On Okt 02 2019, Juanma Barranquero wrote: > > > > > When the search fails, Emacs is now reporting "permission denied" if > some > > > PATH element was non-existent, or "no such file or directory" > otherwise. At > > > least on Windows. > > > > And that is a bug. A PATH element pointing to a non-existing directory > > should be ignored. > > I don't know what "ignore" means in this case, since call-process > should signal an error if it's unable to find the program. If you > mean that nonexistent directories should be treated as if they > existed, but didn't have the program in them, then I agree, and I've > now fixed the Windows build's behavior to match that of the Posix > builds in this case. > I agree with that too, FWIW. Thanks. > I still didn't hear from Richard confirming that his case is indeed > caused by a non-existent directory on PATH. Yes it is. (At least, there *are* non-existent directories in PATH, and I get the correct message now.) Maybe there are other > factors at work here. > --000000000000e3e6260593f0888f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, 2 Oct 2019 at 17:48, Eli Zare= tskii <eliz@gnu.org> wrote:
>= ; From: Andreas Schwab <schwab@linux-m68k.org>
> Date: Wed, 02 Oct 2019 13:02:43 +0200
> Cc: Richard Copley <rcopley@gmail.com>, 37576@debbugs.gnu.org
>
> On Okt 02 2019, Juanma Barranquero <lekktu@gmail.com> wrote:
>
> > When the search fails, Emacs is now reporting "permission de= nied" if some
> > PATH element was non-existent, or "no such file or directory= " otherwise. At
> > least on Windows.
>
> And that is a bug.=C2=A0 A PATH element pointing to a non-existing dir= ectory
> should be ignored.

I don't know what "ignore" means in this case, since call-pro= cess
should signal an error if it's unable to find the program.=C2=A0 If you=
mean that nonexistent directories should be treated as if they
existed, but didn't have the program in them, then I agree, and I'v= e
now fixed the Windows build's behavior to match that of the Posix
builds in this case.

I agree with that = too, FWIW. Thanks.
=C2=A0
I still didn't hear from Richard confirming that his case is indeed
caused by a non-existent directory on PATH.

Yes it is. (At least, there are non-existent directories in PATH, a= nd I get the correct message now.)

Maybe there are other
factors at work here.
--000000000000e3e6260593f0888f--