TRUENAME will fail if the file does not exist

This commit is contained in:
jjgarcia 2005-02-21 12:44:25 +00:00
parent 2624a02fc2
commit abe8ae3e85

View file

@ -579,7 +579,7 @@
(dolist (p directories)
(dolist (n names)
(dolist (e types)
(let ((full-path (truename (make-pathname
(let ((full-path (probe-file (make-pathname
:device d
:directory (etypecase p
(pathname (pathname-directory p))
@ -587,7 +587,7 @@
(list p))
:name n
:type e))))
(when (probe-file full-path)
(when full-path
(return-from find-foreign-library full-path))
)))))
nil)