GNU bug report logs - #29070
26.0.90; (file-attributes dir) => nil, even though (and (file-exists-p dir) (file-directory-p dir)) => t

Previous Next

Package: emacs;

Reported by: rrandresf <at> gmail.com

Date: Mon, 30 Oct 2017 20:03:01 UTC

Severity: normal

Found in version 26.0.90

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: andrés ramírez <rrandresf <at> gmail.com>
Cc: Andreas Schwab <schwab <at> linux-m68k.org>, 29070 <at> debbugs.gnu.org
Subject: Re: bug#29070: 26.0.90; emacs-26.0.90 pretest
Date: Wed, 01 Nov 2017 19:47:15 -0400
andrés ramírez <rrandresf <at> gmail.com> writes:

> No problem. It compiled fine. And worked as expected.
>
> Thanks guys. 

In addition to Anreads' fix, I modified the error message for this case,
so we won't claim that the directory is a file for nil file-attributes.

For reference, the relevant commit are:

[1: 8453423c7c]: 2017-11-01 21:44:49 +0100
  Avoid wrong value from file-attributes on Linux kernel before 3.6
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8453423c7c5e1886a301fb61c4077650f59e670b

[2: dc0a25c2f9]: 2017-11-01 19:39:34 -0400
  Give a more sensible message if file-attributes fails (Bug#29070)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dc0a25c2f9b44c697194bd0ec21c942125160544




This bug report was last modified 7 years and 203 days ago.

Previous Next


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