summaryrefslogtreecommitdiff
path: root/lisp/dos-w32.el
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>1999-07-01 19:42:42 +0000
committerAndrew Innes <andrewi@gnu.org>1999-07-01 19:42:42 +0000
commitca465b1fd5d13ad73192e4a5a4cf4215af8ef5ec (patch)
tree23c410ef3c80a867507e933c73ebd904dbf03578 /lisp/dos-w32.el
parentb23b49549448caf284aa0e9f01286f64b1bedef4 (diff)
downloademacs-ca465b1fd5d13ad73192e4a5a4cf4215af8ef5ec.tar.gz
(untranslated-canonical-name): Avoid expanding
ange-ftp file names, which might force ange-ftp to prompt for a password.
Diffstat (limited to 'lisp/dos-w32.el')
-rw-r--r--lisp/dos-w32.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el
index 612191c75aa..8e3e7862520 100644
--- a/lisp/dos-w32.el
+++ b/lisp/dos-w32.el
@@ -208,7 +208,10 @@ dealing with untranslated filesystems."
filename nil))
;; Use expand-file-name to canonicalize directory separators, except
;; with bare drive letters (which would have the cwd appended).
- (if (string-match "^.:$" name)
+ ;; Avoid expanding names that could trigger ange-ftp to prompt
+ ;; for passwords, though.
+ (if (or (string-match "^.:$" name)
+ (string-match "^/[^/:]+:" name))
name
(expand-file-name name)))
filename))