From 016884b5817d04411dd4b889881cbb3faf8b1f56 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Sun, 4 Dec 2005 15:49:35 +0000
Subject: [PATCH] A single leading dot in the name portion is ok when printing
 the namestring.

Bug noted by Lynn Quam, cmucl-imp, 2005/12/02.
---
 code/filesys.lisp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/code/filesys.lisp b/code/filesys.lisp
index e3327e35e..be56f1e3e 100644
--- a/code/filesys.lisp
+++ b/code/filesys.lisp
@@ -6,7 +6,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.98 2005/11/07 00:42:25 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.99 2005/12/04 15:49:35 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -494,7 +494,8 @@
 	  (when (find #\/ name)
 	    (error "Cannot specify a directory separator in a pathname name: ~S" name))
 	  (when (and (not type-supplied)
-		     (find #\. name))
+		     (find #\. name :start 1))
+	    ;; A single leading dot is ok.
 	    (error "Cannot specify a dot in a pathname name without a pathname type: ~S" name))
 	  (when (or (string= ".." name)
 		    (string= "." name))
-- 
GitLab