From 9f29dbc8b8871b29215826d1b56cddd41865629c Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Sat, 22 Oct 2005 00:33:56 +0000
Subject: [PATCH] Oops.  A version of nil, :newest, or :unspecific is ok
 without a name.  (But we still have problems with print/read for :newest and
 :unspecific.)

---
 code/filesys.lisp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/code/filesys.lisp b/code/filesys.lisp
index a17c4b7f5..1cda607a2 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.95 2005/10/21 18:10:11 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.96 2005/10/22 00:33:56 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -496,7 +496,8 @@
 	  (error "Cannot specify the type without a file: ~S" pathname))
 	(strings ".")
 	(strings (unparse-unix-piece type)))
-      (when (and version (not name))
+      (when (and (not (member version '(nil :newest :unspecific)))
+		 (not name))
 	;; We don't want version without a name, because when we try
 	;; to read #p".~*~" back, the name is "", not NIL.
 	(error "Cannot specify a version without a file: ~S" pathname))
-- 
GitLab