diff options
| author | Drew Adams | 2012-01-28 12:26:29 +0100 |
|---|---|---|
| committer | Michael Albinus | 2012-01-28 12:26:29 +0100 |
| commit | 4372494f8f897d129134159e03d69e7b59c27679 (patch) | |
| tree | 3964bbff8515de4ef374a3cc292e032383c32bed | |
| parent | 4d4ec1f815374dbb14907029cbfdf0c80148a032 (diff) | |
| download | emacs-4372494f8f897d129134159e03d69e7b59c27679.tar.gz emacs-4372494f8f897d129134159e03d69e7b59c27679.zip | |
* net/ange-ftp.el (ange-ftp-canonize-filename): Check, that
`default-directory' is non-nil.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 14133949c7d..c374c71db38 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-01-28 Drew Adams <drew.adams@oracle.com> | ||
| 2 | |||
| 3 | * net/ange-ftp.el (ange-ftp-canonize-filename): Check, that | ||
| 4 | `default-directory' is non-nil. | ||
| 5 | |||
| 1 | 2012-01-28 Eli Zaretskii <eliz@gnu.org> | 6 | 2012-01-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * mail/emacsbug.el (report-emacs-bug): Fill the potentially long | 8 | * mail/emacsbug.el (report-emacs-bug): Fill the potentially long |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 93954588fa9..4338cdff3cd 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -3098,7 +3098,8 @@ logged in as user USER and cd'd to directory DIR." | |||
| 3098 | (if (not (eq system-type 'windows-nt)) | 3098 | (if (not (eq system-type 'windows-nt)) |
| 3099 | (setq name (ange-ftp-real-expand-file-name name)) | 3099 | (setq name (ange-ftp-real-expand-file-name name)) |
| 3100 | ;; Windows UNC default dirs do not make sense for ftp. | 3100 | ;; Windows UNC default dirs do not make sense for ftp. |
| 3101 | (setq name (if (string-match "\\`//" default-directory) | 3101 | (setq name (if (and default-directory |
| 3102 | (string-match "\\`//" default-directory)) | ||
| 3102 | (ange-ftp-real-expand-file-name name "c:/") | 3103 | (ange-ftp-real-expand-file-name name "c:/") |
| 3103 | (ange-ftp-real-expand-file-name name))) | 3104 | (ange-ftp-real-expand-file-name name))) |
| 3104 | ;; Strip off possible drive specifier. | 3105 | ;; Strip off possible drive specifier. |