]> git.eshelyaron.com Git - emacs.git/commitdiff
(file-name-handler-alist): Don't match host name ending in period.
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Aug 1995 23:38:49 +0000 (23:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Aug 1995 23:38:49 +0000 (23:38 +0000)
lisp/ange-ftp.el

index 512d357e808903f307c753da401e4cda62653955..0af2e987509fdf280e130c5f617daf19f919b591 100644 (file)
@@ -3826,10 +3826,11 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
 
 ;;; This regexp takes care of real ange-ftp file names (with a slash
 ;;; and colon).
+;;; Don't allow the host name to end in a period--some systems use /.:
 ;;;###autoload
-(or (assoc "^/[^/:]*[^/:]:" file-name-handler-alist)
+(or (assoc "^/[^/:]*[^/:.]:" file-name-handler-alist)
     (setq file-name-handler-alist
-         (cons '("^/[^/:]*[^/:]:" . ange-ftp-hook-function)
+         (cons '("^/[^/:]*[^/:.]:" . ange-ftp-hook-function)
                file-name-handler-alist)))
 
 ;;; This regexp recognizes and absolute filenames with only one component,