From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21346: 25.0.50; REGRESSION: `directory-files' raises error for DIR that is `file-accessible-directory-p' Date: Tue, 25 Aug 2015 10:48:10 -0700 (PDT) Message-ID: <2974d023-5059-414f-960d-273fbeaca5de@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440525030 4547 80.91.229.3 (25 Aug 2015 17:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2015 17:50:30 +0000 (UTC) To: 21346@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 25 19:50:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUIMQ-0000KQ-A9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Aug 2015 19:50:14 +0200 Original-Received: from localhost ([::1]:33856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUIMP-0006Ew-Ke for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Aug 2015 13:50:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUIMJ-0006BJ-5c for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:50:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUIMF-0004LF-VN for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:50:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUIMF-0004L1-ST for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUIMF-0000mM-7J for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Aug 2015 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21346 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14405249612927 (code B ref -1); Tue, 25 Aug 2015 17:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Aug 2015 17:49:21 +0000 Original-Received: from localhost ([127.0.0.1]:38253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUILY-0000l8-Sr for submit@debbugs.gnu.org; Tue, 25 Aug 2015 13:49:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34188) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUILX-0000l1-Aq for submit@debbugs.gnu.org; Tue, 25 Aug 2015 13:49:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUILV-0003zp-Rw for submit@debbugs.gnu.org; Tue, 25 Aug 2015 13:49:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUILV-0003zl-P6 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 13:49:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUILU-00065W-S7 for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:49:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUILR-0003yy-MA for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:49:16 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:21881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUILR-0003RY-Em for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2015 13:49:13 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t7PHmB40014477 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Aug 2015 17:48:11 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t7PHmA1i030658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 25 Aug 2015 17:48:11 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t7PHmAxP008658 for ; Tue, 25 Aug 2015 17:48:10 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105810 Archived-At: 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=3Di686-pc-mingw32 --enable-checking=3Dyes,glyphs'