]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug with make-directory on MS-Windows root
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Sep 2017 08:47:39 +0000 (01:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Sep 2017 08:48:04 +0000 (01:48 -0700)
* 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

index ff0ab7063388b786cfdd89bf023580314fd3d02a..0c30d40c13b329fec457752d7fce6734798c466d 100644 (file)
@@ -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))))))