unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21346: 25.0.50; REGRESSION: `directory-files' raises error for DIR that is `file-accessible-directory-p'
@ 2015-08-25 17:48 Drew Adams
  2015-08-25 18:10 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2015-08-25 17:48 UTC (permalink / raw)
  To: 21346

The behavior seems wrong.  If so, the regression was introduced in
Emacs 24.5.

emacs -Q

I evaluate these two sexps:

(file-accessible-directory-p
"D:/$RECYCLE.BIN/S-1-5-21-3120201979-235963886-2582836866-1001")

(directory-files
"D:/$RECYCLE.BIN/S-1-5-21-3120201979-235963886-2582836866-1001")

The first returns t.  In Emacs prior to Emacs 24.5, the second returns
nil.  In Emacs 24.5 and later I get this error:

Debugger entered--Lisp error: (file-error "Opening directory"
 "Permission denied"
 "D:/$RECYCLE.BIN/S-1-5-21-3120201979-235963886-2582836866-1001")
* directory-files(
"D:/$RECYCLE.BIN/S-1-5-21-3120201979-235963886-2582836866-1001"
 FULL
 "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*")

Evaluating `file-attributes' for the same file returns this:

(t 1 37786 513
   (20885 54199 0 0)
   (20885 54199 0 0)
   (20885 54199 0 0)
   0 "drwxrwxrwx" t 0 506428215)

In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2015-07-31 on LEG570
Bzr revision: 8d332aeccab2208e6c6bd434738565e6abf12043
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --host=i686-pc-mingw32 --enable-checking=yes,glyphs'





^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <<2974d023-5059-414f-960d-273fbeaca5de@default>]

end of thread, other threads:[~2015-08-31 15:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 17:48 bug#21346: 25.0.50; REGRESSION: `directory-files' raises error for DIR that is `file-accessible-directory-p' Drew Adams
2015-08-25 18:10 ` Eli Zaretskii
     [not found] <<2974d023-5059-414f-960d-273fbeaca5de@default>
     [not found] ` <<83fv37fdcg.fsf@gnu.org>
2015-08-25 18:34   ` Drew Adams
2015-08-25 19:09     ` Eli Zaretskii
     [not found]   ` <<bb9288b5-fa49-41eb-a016-3798404985aa@default>
     [not found]     ` <<83egirfane.fsf@gnu.org>
2015-08-25 20:55       ` Drew Adams
2015-08-26 15:46         ` Eli Zaretskii
2015-08-31 15:01           ` Eli Zaretskii
     [not found]       ` <<b9a02743-e606-432e-bed0-8de4121098b9@default>
     [not found]         ` <<83lhcy59xp.fsf@gnu.org>
2015-08-26 16:27           ` Drew Adams
     [not found]           ` <<838u8r1oz3.fsf@gnu.org>
2015-08-31 15:05             ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).