From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37576: 27.0.50; [Windows] "Permission denied" error from call-process if executable not found Date: Wed, 02 Oct 2019 19:48:13 +0300 Message-ID: <838sq3856a.fsf@gnu.org> References: <87a7aja29z.fsf@igel.home> <875zl79zqk.fsf@igel.home> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="229042"; mail-complaints-to="usenet@blaine.gmane.org" Cc: rcopley@gmail.com, lekktu@gmail.com, 37576@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 02 18:50:11 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 1iFhpK-000xRE-2j for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 18:50:10 +0200 Original-Received: from localhost ([::1]:57690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFhpI-0004XG-Rq for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 12:50:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34705) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFhoJ-000410-4Y for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 12:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFhoF-0000zu-1l for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 12:49:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFhoE-0000zX-2s for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFhoD-0004jC-U8 for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 12:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Oct 2019 16:49:01 +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.157003492218148 (code B ref 37576); Wed, 02 Oct 2019 16:49:01 +0000 Original-Received: (at 37576) by debbugs.gnu.org; 2 Oct 2019 16:48:42 +0000 Original-Received: from localhost ([127.0.0.1]:38241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFhnu-0004ic-7m for submit@debbugs.gnu.org; Wed, 02 Oct 2019 12:48:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFhns-0004iM-0q for 37576@debbugs.gnu.org; Wed, 02 Oct 2019 12:48:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iFhnm-0000lg-3g; Wed, 02 Oct 2019 12:48:34 -0400 Original-Received: from [176.228.60.248] (port=3915 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iFhnk-0000Ct-RI; Wed, 02 Oct 2019 12:48:33 -0400 In-reply-to: <875zl79zqk.fsf@igel.home> (message from Andreas Schwab on Wed, 02 Oct 2019 13:02:43 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:168167 Archived-At: > 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 still didn't hear from Richard confirming that his case is indeed caused by a non-existent directory on PATH. Maybe there are other factors at work here.