X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ffilesys.lisp;h=482b34b4fc316cf117e49738d17a41a23f3f24c8;hb=c6e249ac371fae7bf2d04defa9433720108376e4;hp=f7c95b09204203301b4091d61c5246a7fcf29fd2;hpb=4c4620d79901ec2d2a27e20344af4769eddd4c07;p=sbcl.git diff --git a/src/code/filesys.lisp b/src/code/filesys.lisp index f7c95b0..482b34b 100644 --- a/src/code/filesys.lisp +++ b/src/code/filesys.lisp @@ -790,19 +790,15 @@ Experimental: interface subject to change." ;; end of the line (funcall function subdirectory)) ((or (eq :wild next) (typep next 'pattern)) - (lambda (pathname) - (map-wild function more pathname))) + (map-wild function more subdirectory)) ((eq :wild-inferiors next) - (lambda (pathname) - (map-wild-inferiors function more pathname))) + (map-wild-inferiors function more subdirectory)) (t - (lambda (pathname) - (let ((this (pathname-directory pathname))) - (when (equal next (car (last this))) - (map-matching-directories - function - (make-pathname :directory (append this more) - :defaults pathname))))))))) + (let ((this (pathname-directory subdirectory))) + (map-matching-directories + function + (make-pathname :directory (append this more) + :defaults subdirectory))))))) (map-directory (if (eq :wild this) #'cont