Mercurial > emacs
diff lisp/dos-w32.el @ 24913:76764b2157af
(untranslated-canonical-name): Avoid expanding
ange-ftp file names, which might force ange-ftp to prompt for a
password.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Thu, 01 Jul 1999 19:42:42 +0000 |
parents | 7de5cc79a8b4 |
children | f1d437596538 |
line wrap: on
line diff
--- a/lisp/dos-w32.el Thu Jul 01 19:40:37 1999 +0000 +++ b/lisp/dos-w32.el Thu Jul 01 19:42:42 1999 +0000 @@ -208,7 +208,10 @@ 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))