From b16e9b44e8a4da1c2976c0ddcfe7258961cd6e6b Mon Sep 17 00:00:00 2001
From: pw <pw>
Date: Thu, 5 Apr 2001 13:40:02 +0000
Subject: [PATCH] Fix guard against "/" in pathname name or type to consider
 that the argument may be other than a string.

---
 code/pathname.lisp | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/code/pathname.lisp b/code/pathname.lisp
index 472cae66d..5df345f19 100644
--- a/code/pathname.lisp
+++ b/code/pathname.lisp
@@ -4,7 +4,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.48 2001/03/27 20:23:45 pw Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.49 2001/04/05 13:40:02 pw Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -676,11 +676,12 @@ a host-structure or string."
 
     ;; A bit of sanity checking on user arguments.
     (flet ((check-component-validity (name name-or-type)
-	     (let ((unix-directory-separator #\/))
-	       (when (eq host (pathname-host *default-pathname-defaults*))
-		 (when (find unix-directory-separator name)
-		   (warn "Silly argument for a unix ~A: ~S"
-			 name-or-type name))))))
+	     (when (stringp name)
+	       (let ((unix-directory-separator #\/))
+		 (when (eq host (pathname-host *default-pathname-defaults*))
+		   (when (find unix-directory-separator name)
+		     (warn "Silly argument for a unix ~A: ~S"
+			   name-or-type name)))))))
       (check-component-validity name :pathname-name)
       (check-component-validity type :pathname-type))
     
-- 
GitLab