changeset 12741:bcaa94db623c

(file-name-handler-alist): Don't match host name ending in period.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Aug 1995 23:38:49 +0000
parents 8b44b70e655d
children fc5662a15b3d
files lisp/ange-ftp.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ange-ftp.el	Tue Aug 01 23:34:53 1995 +0000
+++ b/lisp/ange-ftp.el	Tue Aug 01 23:38:49 1995 +0000
@@ -3826,10 +3826,11 @@
 
 ;;; 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,