From f8b2b0b52dde7059df083b6358bd381590bdb5f8 Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Mon, 12 Aug 2002 20:56:10 +0000
Subject: [PATCH] Test for type file-stream instead of stream because a stream
 may not have a file-name associated with it, but file-streams do.

(Noted by Christophe Rhodes.)
---
 code/pathname.lisp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/code/pathname.lisp b/code/pathname.lisp
index 6a59e2dc4..6a40230c2 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.55 2002/02/19 15:51:11 toy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.56 2002/08/12 20:56:10 toy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -421,7 +421,7 @@
 		 (etypecase ,var
 		   (pathname ,var)
 		   (string (parse-namestring ,var))
-		   (stream (file-name ,var))))))
+		   (file-stream (file-name ,var))))))
      ,@body))
 
 ;;; WITH-HOST -- Internal
-- 
GitLab