From e42c26a481372d2b987d505fbebe665e17ff64fe Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Fri, 16 Sep 2005 21:27:35 +0000
Subject: [PATCH] TRANSLATE-PATHNAME should signal an error if
 (pathname-match-p source from-wildcard) is not true.  (Noted by Peter
 Graves.)

---
 code/pathname.lisp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/code/pathname.lisp b/code/pathname.lisp
index 5ff0e17f5..87822f244 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.75 2005/09/13 14:38:44 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.76 2005/09/16 21:27:35 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -1382,6 +1382,8 @@ a host-structure or string."
   (with-pathname (source source)
     (with-pathname (from from-wildname)
       (with-pathname (to to-wildname)
+	  (unless (pathname-match-p source from)
+	    (didnt-match-error source from))
 	  (let* ((source-host (%pathname-host source))
 		 (to-host (%pathname-host to))
 		 (diddle-case 
-- 
GitLab