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

Previous Next

Package: emacs;

Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>

Date: Fri, 9 Jun 2017 18:09:01 UTC

Severity: minor

To reply to this bug, email your comments to 27300 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to help-debbugs <at> gnu.org:
bug#27300; Package debbugs.gnu.org. (Fri, 09 Jun 2017 18:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Neidhardt <ambrevar <at> gmail.com>:
New bug report received and forwarded. Copy sent to help-debbugs <at> gnu.org. (Fri, 09 Jun 2017 18:09:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <ambrevar <at> gmail.com>
To: To:  bug-gnu-emacs <at> gnu.org
Subject: Subject: 25.2; (E)Shell command completion fails when folder in PATH
 is not readable
Date: Fri, 9 Jun 2017 19:08:27 +0100
- 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




bug reassigned from package 'debbugs.gnu.org' to 'emacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 09 Jun 2017 18:12:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27300; Package emacs. (Fri, 09 Jun 2017 18:15:02 GMT) Full text and rfc822 format available.

Message #10 received at 27300 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 27300 <at> debbugs.gnu.org
Cc: Pierre Neidhardt <ambrevar <at> gmail.com>
Subject: Re: bug#27300: Subject: 25.2;
 (E)Shell command completion fails when folder in PATH is not readable
Date: Fri, 09 Jun 2017 14:14:39 -0400
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.




This bug report was last modified 8 years and 62 days ago.

Previous Next


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