Skip to content
Snippets Groups Projects
Commit 016884b5 authored by rtoy's avatar rtoy
Browse files

A single leading dot in the name portion is ok when printing the

namestring.

Bug noted by Lynn Quam, cmucl-imp, 2005/12/02.
parent 058e88ec
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment