diff options
| author | Karl Heuer | 1997-11-23 02:16:13 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-11-23 02:16:13 +0000 |
| commit | 7e7dab81236eb810834191298fdc68585c192ec1 (patch) | |
| tree | a0f62aad5835edb313272ff5d11d200be6d04695 | |
| parent | fcae1b4cb25fd252f2cac5b2a84b9390c0ae9d9f (diff) | |
| download | emacs-7e7dab81236eb810834191298fdc68585c192ec1.tar.gz emacs-7e7dab81236eb810834191298fdc68585c192ec1.zip | |
(ange-ftp-generate-passwd-key):
Downcase the host name
(ange-ftp-passwd-hashtable): Doc fix.
| -rw-r--r-- | lisp/ange-ftp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index a3c6c74c6f6..8b09c7f45e7 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -1001,7 +1001,8 @@ SIZE, if supplied, should be a prime number." | |||
| 1001 | "Hash table holding associations between HOST, USER pairs.") | 1001 | "Hash table holding associations between HOST, USER pairs.") |
| 1002 | 1002 | ||
| 1003 | (defvar ange-ftp-passwd-hashtable (ange-ftp-make-hashtable) | 1003 | (defvar ange-ftp-passwd-hashtable (ange-ftp-make-hashtable) |
| 1004 | "Mapping between a HOST, USER pair and a PASSWORD for them.") | 1004 | "Mapping between a HOST, USER pair and a PASSWORD for them. |
| 1005 | All HOST values should be in lower case.") | ||
| 1005 | 1006 | ||
| 1006 | (defvar ange-ftp-account-hashtable (ange-ftp-make-hashtable) | 1007 | (defvar ange-ftp-account-hashtable (ange-ftp-make-hashtable) |
| 1007 | "Mapping between a HOST, USER pair and a ACCOUNT password for them.") | 1008 | "Mapping between a HOST, USER pair and a ACCOUNT password for them.") |
| @@ -1139,7 +1140,7 @@ Optional DEFAULT is password to start with." | |||
| 1139 | (or pass default ""))) | 1140 | (or pass default ""))) |
| 1140 | 1141 | ||
| 1141 | (defmacro ange-ftp-generate-passwd-key (host user) | 1142 | (defmacro ange-ftp-generate-passwd-key (host user) |
| 1142 | (` (concat (, host) "/" (, user)))) | 1143 | (` (concat (downcase (, host)) "/" (, user)))) |
| 1143 | 1144 | ||
| 1144 | (defmacro ange-ftp-lookup-passwd (host user) | 1145 | (defmacro ange-ftp-lookup-passwd (host user) |
| 1145 | (` (ange-ftp-get-hash-entry (ange-ftp-generate-passwd-key (, host) (, user)) | 1146 | (` (ange-ftp-get-hash-entry (ange-ftp-generate-passwd-key (, host) (, user)) |