GNU bug report logs - #27300
Subject: 25.2; (E)Shell command completion fails when folder in PATH is not readable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Pierre Neidhardt <ambrevar@HIDDEN>; dated Fri, 9 Jun 2017 18:09:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 27300 <at> debbugs.gnu.org:


Received: (at 27300) by debbugs.gnu.org; 9 Jun 2017 18:14:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 09 14:14:50 2017
Received: from localhost ([127.0.0.1]:37369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dJOQs-0001y2-15
	for submit <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:14:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50637)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1dJOQp-0001xo-Rv
 for 27300 <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:14:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1dJOQk-0004Vy-40
 for 27300 <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:14:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58657)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1dJOQk-0004Vs-0L; Fri, 09 Jun 2017 14:14:42 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1dJOQh-0006ME-U4; Fri, 09 Jun 2017 14:14:40 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 27300 <at> debbugs.gnu.org
Subject: Re: bug#27300: Subject: 25.2;
 (E)Shell command completion fails when folder in PATH is not readable
References: <20170609180827.GA1209@HIDDEN>
X-Spook: Grid Shell Dirty bomb LABLINK Mara salvatrucha tempest
X-Ran: L8,;@8,RmXUi5^Y-^vw4dtkRU.xMW^XBpse_k0+b[-g"~UA~$)"Sgfov'[cDFs0>r({[qi
X-Hue: magenta
X-Attribution: GM
Date: Fri, 09 Jun 2017 14:14:39 -0400
In-Reply-To: <20170609180827.GA1209@HIDDEN> (Pierre Neidhardt's message of
 "Fri, 9 Jun 2017 19:08:27 +0100")
Message-ID: <upefut3u5s.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 27300
Cc: Pierre Neidhardt <ambrevar@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Bug reassigned to emacs (ended up in wrong package due to odd To: field
in original report).

Pierre Neidhardt wrote:

> - Make one PATH member non-readable
>
> 	$ chmod -r /path/to/some/bin/folder
>
> - Start `emacs -Q`.
> - M-x shell
> - Press "e<TAB>" (any letter will do)
>
> I get the following error:
>
> 	(file-error "Opening directory" "Permission denied" "/path/to/some/bin/folder")
>
> While a warning could make sense, a non-readable folder should not prevent
> completion from working.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27300; Package emacs. Full text available.
bug reassigned from package 'debbugs.gnu.org' to 'emacs'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Jun 2017 18:08:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 09 14:08:44 2017
Received: from localhost ([127.0.0.1]:37354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dJOKy-0001o8-3q
	for submit <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:08:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ambrevar@HIDDEN>) id 1dJOKw-0001nv-Jh
 for submit <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:08:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dJOKq-0001bQ-C1
 for submit <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:08:37 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36807)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ambrevar@HIDDEN>) id 1dJOKq-0001bM-9C
 for submit <at> debbugs.gnu.org; Fri, 09 Jun 2017 14:08:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40527)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dJOKp-0004qm-Dr
 for bug-gnu-emacs@HIDDEN; Fri, 09 Jun 2017 14:08:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dJOKm-0001ZY-7x
 for bug-gnu-emacs@HIDDEN; Fri, 09 Jun 2017 14:08:35 -0400
Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:35232)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ambrevar@HIDDEN>) id 1dJOKl-0001Xl-WE
 for bug-gnu-emacs@HIDDEN; Fri, 09 Jun 2017 14:08:32 -0400
Received: by mail-wr0-x22c.google.com with SMTP id q97so41197599wrb.2
 for <bug-gnu-emacs@HIDDEN>; Fri, 09 Jun 2017 11:08:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:from:to:subject:message-id:mime-version:content-disposition
 :user-agent; bh=W2kjJHkKkTeL5SqMkyTFIFlgx3sw6RIwX7YxiZho8Bc=;
 b=JEO3tPS4nQpSKXN2nr7qFU0QVJDPg+kiMXFlWqjyLliG7buXLxjuBD4ebjz8iFTcTY
 hhS49QT6/b02kCaFjez0+yKFRlTgoYE8IoT4kCsJ+BThTKUL8l2f7QhOU0GylYxk5ruB
 Q9TV0uCpJlTqVhx2fYqJwkL+Hw/uSWOqxTCiUYf3XCrOPGqN/XDEvLOgxLrc0XE6Rmvv
 ba4j8NFWhJ687fEqYPAUQxLitjIIBTVIMf7oJOlzAmtdHSBhWm6AnnlbXPvp9PQyCnqP
 2U11RJCGLMRL3VIxlucZnA+FlvntJy/B4IQ6TYC5OX2/bQ+KcB8SU35DYb4CGZfBlCOc
 GV+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:subject:message-id:mime-version
 :content-disposition:user-agent;
 bh=W2kjJHkKkTeL5SqMkyTFIFlgx3sw6RIwX7YxiZho8Bc=;
 b=OaT10c2gLPXStz285WZfysfcdLv0WMIOIw/31Wx/hRylP3Zp7IgML0D4Vm9IjbXC4F
 TBIjWyicpzlsnplKpLhcXy0qFuoN6HMdffUqRl1I0NmVbA17193lLwdrZjySEx6Z1Yfw
 z9ylXnIiFgAc7DAtZt+TA/yDqgAba4IFoGiS/y9pvsno2UcYwm59wuUh26SiMavthtd6
 BiCJz/eWOgZ4NxjBn5X+V/uhVfeogb1V2IpUMY7fTmlAS2f8UiedXSUuiAHcHIWyyAFH
 lQX1Rh8sJnc5pKPNXZ3YBypYWCNuWSjen9Gcoh10TK++BG3DYE88np9qTIPCvQ9P2Czo
 b5pA==
X-Gm-Message-State: AKS2vOy1e671TunkzQhnJa37luKP66TZB9lyFf3c4lUiGLnJPCKWO97p
 oNOJ7t86txJUoQLN
X-Received: by 10.28.13.1 with SMTP id 1mr901857wmn.12.1497031709034;
 Fri, 09 Jun 2017 11:08:29 -0700 (PDT)
Received: from gmail.com ([196.203.31.130])
 by smtp.gmail.com with ESMTPSA id p76sm415974wma.15.2017.06.09.11.08.28
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 09 Jun 2017 11:08:28 -0700 (PDT)
Date: Fri, 9 Jun 2017 19:08:27 +0100
From: Pierre Neidhardt <ambrevar@HIDDEN>
To: To:  bug-gnu-emacs@HIDDEN
Subject: Subject: 25.2; (E)Shell command completion fails when folder in PATH
 is not readable
Message-ID: <20170609180827.GA1209@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Info: Simplicity is the ultimate sophistication.
User-Agent: Mutt/1.8.3 (2017-05-23)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


- Make one PATH member non-readable

	$ chmod -r /path/to/some/bin/folder

- Start `emacs -Q`.
- M-x shell
- Press "e<TAB>" (any letter will do)

I get the following error:

	(file-error "Opening directory" "Permission denied" "/path/to/some/bin/folder")

While a warning could make sense, a non-readable folder should not prevent
completion from working.



Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix




Acknowledgement sent to Pierre Neidhardt <ambrevar@HIDDEN>:
New bug report received and forwarded. Copy sent to help-debbugs@HIDDEN. Full text available.
Report forwarded to help-debbugs@HIDDEN:
bug#27300; Package debbugs.gnu.org. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.