Commit 4372494f authored by Drew Adams's avatar Drew Adams Committed by Michael Albinus

* net/ange-ftp.el (ange-ftp-canonize-filename): Check, that

`default-directory' is non-nil.
parent 4d4ec1f8
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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment