From: Mark Wooding Date: Sun, 5 Jun 2011 00:07:44 +0000 (+0100) Subject: safely.lisp: Fix RENAME to cope with nontrivial directory components. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/lisp/commitdiff_plain/469805e3cd7d17e70de6b668aae1fc32a1413265 safely.lisp: Fix RENAME to cope with nontrivial directory components. The mad Lisp RENAME-FILE rules strike again. --- diff --git a/safely.lisp b/safely.lisp index 13671a4..69fceed 100644 --- a/safely.lisp +++ b/safely.lisp @@ -112,7 +112,9 @@ (defun safely-open-output-stream (safe file &rest open-args) (declaim (inline rename)) (defun rename (old new) - #-clisp (rename-file old new) + #-clisp (rename-file old + (make-pathname :directory '(:relative) + :defaults new)) #+clisp (posix:copy-file old new :method :rename)) (defun delete-file-without-moaning (file)