From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#28508: 26.0.60; Problem with mkdir() on root drive (ms-windows) Date: Tue, 19 Sep 2017 10:26:27 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113c6008d0e9890559869e79" X-Trace: blaine.gmane.org 1505809706 31372 195.159.176.226 (19 Sep 2017 08:28:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 08:28:26 +0000 (UTC) To: 28508@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 10:28:21 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDtE-0007rw-GZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 10:28:20 +0200 Original-Received: from localhost ([::1]:40764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDtL-00050K-Uf for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 04:28:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDsy-0004oR-CJ for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:28:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duDsw-0004uF-MH for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:28:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duDsw-0004u7-Id for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duDsw-0006G0-CI for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 08:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28508 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.150580962823981 (code B ref -1); Tue, 19 Sep 2017 08:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 08:27:08 +0000 Original-Received: from localhost ([127.0.0.1]:47215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDs3-0006Ej-FB for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:27:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDs1-0006EB-SF for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duDrq-0004FH-79 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:27:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duDrq-0004F4-3Q for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:26:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDro-0004Ak-Bm for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:26:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duDrm-0004Dd-UZ for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:26:52 -0400 Original-Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:47876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duDrm-0004Bx-NG for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:26:50 -0400 Original-Received: by mail-qt0-x232.google.com with SMTP id b1so2963377qtc.4 for ; Tue, 19 Sep 2017 01:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bNd0YMBYNxh/ioWCYjcf60q1L0Y9Rig/Z6GyIJz78uM=; b=Poj8ugPEpMVHqLpajOkIXVRF0rNKoYU7/ovJGX99GzAsnqPxQ2GMap5Cv+0R0q7V7C +0hItbUzu5AaJgBhSClVfhrrf95hswuZXJgKcIQyj+qgbVwcXsBQO+CJ1oSFSjSRFoNX 0DJRj1NOjAg+UyBpY8YgDBwA88uWVfxGV9g5Y4RwjjLYhAqdBO+URiC8mwMLUSt5tEPb bgQJCdbTiJjwUq277RLfm8ysHkhT6ceTdowaTGD7XyVXpMOnCq+yVTqa3gnojxVAaMuY 46L8rdrv03WtD/oWOSoZlH3QtQkZGmiirBB0AaznG+lUx4sxCSd4c+x3m7AlaoGGTijB /zOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bNd0YMBYNxh/ioWCYjcf60q1L0Y9Rig/Z6GyIJz78uM=; b=LNvYNf+P5KuDpvYYkkH8mVcag03bhua7dxrSH5ybJeoXD8vqM9hzqYNYiuK/VFyMz5 yKHMYrlmexE0aQfjdYZI7xUVs8l4CkRMAb4zhXLxz3WqdtGfTz5Y4IY1bIYdpBOsrXEe G5aIzgkBPEzSWbq/IiXCLyWqsoSSfARsr+X/txLvXA96t9m0O6NZjJasHH5rrS4/X/+C sUW3H7+jgefl4vuG7WrzikL5+U7XhAfGjI7OEamvpfu87+Qi93LNqRivNZ2LJ4JyycTo Ve0U7xIoTP19yj0KvSanMcsz15+NxSOEc7An2GcyPqNFgQM9Kol+q9U+3hj6cmco4vVr 4nOQ== X-Gm-Message-State: AHPjjUgo5gNNtKX3rlmybbTZ6l9k8RXsCntFii+RRaW6aH+ytUh+Qdfu ICGIoc7vV0c8oClnmdUxqacwRIjXTdjZCF2EfM8Q6w== X-Google-Smtp-Source: AOwi7QCjjH0Dd/ncGZvlFc0iNStwvgPtQTwNmmXMSdflSb1LfCctk8GoHzlRxLJ6y22p+NmpQQkcMOptsQCLv9eHvjw= X-Received: by 10.200.40.117 with SMTP id 50mr829779qtr.167.1505809608526; Tue, 19 Sep 2017 01:26:48 -0700 (PDT) Original-Received: by 10.140.82.8 with HTTP; Tue, 19 Sep 2017 01:26:27 -0700 (PDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:137113 Archived-At: --001a113c6008d0e9890559869e79 Content-Type: text/plain; charset="UTF-8" On the following: (make-directory-internal "c:/") emacs reports "Permission denied" rather than "File already exists". This has several consequences. First, (make-directory "c:/" t) should not error, but it does because it does not catch the "Permission denied" error. Second, while running make check in the current emacs-26 branch, there is a failure in files-tests.el directly related to the previous point. Suggestion: modify files--ensure-directory to catch the case of a root drive and avoid/catch the permission denied error. Best regards, Fabrice In GNU Emacs 26.0.60 (build 3, x86_64-w64-mingw32) of 2017-09-19 built on LOBSANG Repository revision: 4bd6e39c01ebdc815a5d0670922a827295766677 Windowing system distributor 'Microsoft Corp.', version 10.0.16288 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Entering debugger... is undefined previous-line: Beginning of buffer Configured using: 'configure --prefix=/MingW64 --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --with-imagemagick --without-dbus --enable-checking=no 'CFLAGS=-I/mingw64/include -O3 -g0 -mtune=corei7 -fomit-frame-pointer' CPPFLAGS=-I/mingw64/include LDFLAGS=-L/mingw64/lib' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS LCMS2 Important settings: value of $LANG: fr_FR locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib cconv debug elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 99907 11069) (symbols 56 20316 1) (miscs 48 65 98) (strings 32 30120 1035) (string-bytes 1 759473) (vectors 16 14922) (vector-slots 8 488682 7533) (floats 8 60 110) (intervals 56 314 8) (buffers 992 12)) --001a113c6008d0e9890559869e79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On the following:

=
(make-directory-internal "c:/")

ema= cs reports "Permission denied" rather than "File already exi= sts".
This has several consequences.
First,
<= div>(make-directory "c:/" t)
should not error, but it d= oes because it does not catch the
"Permission denied" e= rror.
Second, while running
make check
in the= current emacs-26 branch, there is a failure
in files-tests.el di= rectly related to the previous point.

Suggestion: = modify files--ensure-directory to catch the case
of a root drive = and avoid/catch the permission denied error.

Best = regards,

Fabrice


In GNU Emacs 26.0.60 (build 3, x86_64-w64-mingw32)
=C2=A0o= f 2017-09-19 built on LOBSANG
Repository revision: 4bd6e39c01ebdc= 815a5d0670922a827295766677
Windowing system distributor 'Micr= osoft Corp.', version 10.0.16288
Recent messages:
F= or information about GNU Emacs and the GNU system, type C-h C-a.
= Entering debugger...
<apps> is undefined
previous= -line: Beginning of buffer
Configured using:
=C2=A0'= ;configure --prefix=3D/MingW64 --with-jpeg --with-xpm --with-png
= =C2=A0--with-tiff --with-rsvg --with-xml2 --with-gnutls --with-imagemagick<= /div>
=C2=A0--without-dbus --enable-checking=3Dno 'CFLAGS=3D-I/ming= w64/include -O3 -g0
=C2=A0-mtune=3Dcorei7 -fomit-frame-pointer= 9; CPPFLAGS=3D-I/mingw64/include
=C2=A0LDFLAGS=3D-L/mingw64/lib&#= 39;

Configured features:
XPM JPEG TIFF G= IF PNG RSVG IMAGEMAGICK SOUND NOTIFY ACL GNUTLS LIBXML2
ZLIB TOOL= KIT_SCROLL_BARS LCMS2

Important settings:
=C2=A0 value of $LANG: fr_FR
=C2=A0 locale-coding-system: cp125= 2

Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 el= ectric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0= tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-n= ame-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2= =A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path s= hadows:
None found.

Features:
= (shadow sort mail-extr emacsbug message subr-x puny seq dired
dir= ed-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived
=
epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail=
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mo= de
easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddef= s cl-lib
cconv debug elec-pair time-date mule-util tooltip eldoc = electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-= w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-= win tool-bar dnd
fontset image regexp-opt fringe tabulated-list r= eplace newcomment
text-mode elisp-mode lisp-mode prog-mode regist= er page menu-bar
rfn-eshadow isearch timer select scroll-bar mous= e jit-lock font-lock
syntax facemenu font-core term/tty-colors fr= ame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibe= tan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew gre= ek romanian slovak czech european
ethiopic indian cyrillic chines= e composite charscript charprop
case-table epa-hook jka-cmpr-hook= help simple abbrev obarray minibuffer
cl-preloaded nadvice loadd= efs button faces cus-face macroexp files
text-properties overlay = sha1 md5 base64 format env code-pages mule
custom widget hashtabl= e-print-readable backquote w32notify w32 lcms2
multi-tty make-net= work-process emacs)

Memory information:
= ((conses 16 99907 11069)
=C2=A0(symbols 56 20316 1)
=C2= =A0(miscs 48 65 98)
=C2=A0(strings 32 30120 1035)
=C2= =A0(string-bytes 1 759473)
=C2=A0(vectors 16 14922)
=C2= =A0(vector-slots 8 488682 7533)
=C2=A0(floats 8 60 110)
=C2=A0(intervals 56 314 8)
=C2=A0(buffers 992 12))
--001a113c6008d0e9890559869e79--