]> git.eshelyaron.com Git - emacs.git/commitdiff
(ange-ftp-generate-passwd-key):
authorKarl Heuer <kwzh@gnu.org>
Sun, 23 Nov 1997 02:16:13 +0000 (02:16 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 23 Nov 1997 02:16:13 +0000 (02:16 +0000)
Downcase the host name
(ange-ftp-passwd-hashtable): Doc fix.

lisp/ange-ftp.el

index a3c6c74c6f68482c3b1b0971c3abf40d0e5ac47f..8b09c7f45e7a9606d2a9ae994df9e3d417ff69fb 100644 (file)
@@ -1001,7 +1001,8 @@ SIZE, if supplied, should be a prime number."
   "Hash table holding associations between HOST, USER pairs.")
 
 (defvar ange-ftp-passwd-hashtable (ange-ftp-make-hashtable)
-  "Mapping between a HOST, USER pair and a PASSWORD for them.")
+  "Mapping between a HOST, USER pair and a PASSWORD for them.
+All HOST values should be in lower case.")
 
 (defvar ange-ftp-account-hashtable (ange-ftp-make-hashtable)
   "Mapping between a HOST, USER pair and a ACCOUNT password for them.")
@@ -1139,7 +1140,7 @@ Optional DEFAULT is password to start with."
     (or pass default "")))
 
 (defmacro ange-ftp-generate-passwd-key (host user)
-  (` (concat (, host) "/" (, user))))
+  (` (concat (downcase (, host)) "/" (, user))))
 
 (defmacro ange-ftp-lookup-passwd (host user)
   (` (ange-ftp-get-hash-entry (ange-ftp-generate-passwd-key (, host) (, user))