]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/ange-ftp.el (ange-ftp-canonize-filename): Check, that
authorDrew Adams <drew.adams@oracle.com>
Sat, 28 Jan 2012 11:26:29 +0000 (12:26 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 28 Jan 2012 11:26:29 +0000 (12:26 +0100)
`default-directory' is non-nil.

lisp/ChangeLog
lisp/net/ange-ftp.el

index 14133949c7db4939fdd4482c7c4689d601b62a30..c374c71db38e9b9bf29fe3679736da90909bcb66 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-28  Drew Adams  <drew.adams@oracle.com>
+
+       * net/ange-ftp.el (ange-ftp-canonize-filename): Check, that
+       `default-directory' is non-nil.
+
 2012-01-28  Eli Zaretskii  <eliz@gnu.org>
 
        * mail/emacsbug.el (report-emacs-bug): Fill the potentially long
index 93954588fa99b86e5eff2a5e9103b78c99a30135..4338cdff3cda2ded05773ddbe320fa7ada5f59d5 100644 (file)
@@ -3098,7 +3098,8 @@ logged in as user USER and cd'd to directory DIR."
             (if (not (eq system-type 'windows-nt))
                 (setq name (ange-ftp-real-expand-file-name name))
               ;; Windows UNC default dirs do not make sense for ftp.
-              (setq name (if (string-match "\\`//" default-directory)
+              (setq name (if (and default-directory
+                                 (string-match "\\`//" default-directory))
                              (ange-ftp-real-expand-file-name name "c:/")
                            (ange-ftp-real-expand-file-name name)))
               ;; Strip off possible drive specifier.