emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 1a01423: Fix bug with make-directory on MS-Window


From: Paul Eggert
Subject: [Emacs-diffs] emacs-26 1a01423: Fix bug with make-directory on MS-Windows root
Date: Tue, 19 Sep 2017 04:48:11 -0400 (EDT)

branch: emacs-26
commit 1a01423b3c75bf08c255b3bd39f44d91e509a318
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix bug with make-directory on MS-Windows root
    
    * lisp/files.el (files--ensure-directory): Treat any error, not
    just file-already-exists, as an opportunity to check whether DIR
    is already a directory (Bug#28508).
---
 lisp/files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/files.el b/lisp/files.el
index ff0ab70..0c30d40 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5337,7 +5337,7 @@ instance of such commands."
   "Make directory DIR if it is not already a directory.  Return nil."
   (condition-case err
       (make-directory-internal dir)
-    (file-already-exists
+    (error
      (unless (file-directory-p dir)
        (signal (car err) (cdr err))))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]