aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1998-10-30 03:56:25 +0000
committerGeoff Voelker1998-10-30 03:56:25 +0000
commit64aefd1ae3f24a01c43086614e44c9aceb3eced2 (patch)
tree8e09b8396eee322bea12817fa48804d5db4f7cfb
parentdbda5089c071c7f7a4e40510f66493fb72376790 (diff)
downloademacs-64aefd1ae3f24a01c43086614e44c9aceb3eced2.tar.gz
emacs-64aefd1ae3f24a01c43086614e44c9aceb3eced2.zip
(ange-ftp-canonicalize-filename): Do not use a UNC
path as a default directory when canonicalizing names.
-rw-r--r--lisp/ange-ftp.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 6e3e0f51686..5c3eb4efd7f 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -3017,11 +3017,15 @@ logged in as user USER and cd'd to directory DIR."
3017 ;; If name starts with //, preserve that, for apollo system. 3017 ;; If name starts with //, preserve that, for apollo system.
3018 (if (not (string-match "^//" name)) 3018 (if (not (string-match "^//" name))
3019 (progn 3019 (progn
3020 (setq name (ange-ftp-real-expand-file-name name)) 3020 (if (not (eq system-type 'windows-nt))
3021 ;; Strip off drive specifier added on windows-nt 3021 (setq name (ange-ftp-real-expand-file-name name))
3022 (if (and (eq system-type 'windows-nt) 3022 ;; Windows UNC default dirs do not make sense for ftp.
3023 (string-match "^[a-zA-Z]:" name)) 3023 (if (string-match "^//" default-directory)
3024 (setq name (substring name 2))) 3024 (setq name (ange-ftp-real-expand-file-name name "c:/"))
3025 (setq name (ange-ftp-real-expand-file-name name)))
3026 ;; Strip off possible drive specifier.
3027 (if (string-match "^[a-zA-Z]:" name)
3028 (setq name (substring name 2))))
3025 (if (string-match "^//" name) 3029 (if (string-match "^//" name)
3026 (setq name (substring name 1))))) 3030 (setq name (substring name 1)))))
3027 3031