Changeset 15293


Ignore:
Timestamp:
Apr 4, 2012, 12:17:50 PM (13 years ago)
Author:
gz
Message:

Force host in backtranslated pathname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lib/pathnames.lisp

    r15083 r15293  
    5858      (dolist (trans (cdr host))
    5959        (when (pathname-match-p path (cadr trans))
    60           (let* (newpath)         
    61             (setq newpath (translate-pathname path (cadr trans) (car trans) :reversible t))
     60          (let* ((src (car trans)) newpath)
     61            ;; Force host in backtranslated path
     62            (when (null (pathname-host src))
     63              (setq src (make-pathname :host (car host) :defaults src)))
     64            (setq newpath (translate-pathname path (cadr trans) src :reversible t))
    6265            (return-from back-translate-pathname-1
    6366              (if  (equalp path newpath) path (back-translate-pathname-1 newpath hosts))))))))
Note: See TracChangeset for help on using the changeset viewer.