From ac6a02875d46f1134f848cc76c58ada892746a77 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Wed, 31 Aug 2005 13:57:08 +0000 Subject: [PATCH] (enough-namestring #p"/a/b/c/" #p"/") was returning #p"/a/b/c/" instead of #p"a/b/c/". Fix it. --- code/filesys.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/filesys.lisp b/code/filesys.lisp index 81638184d..8476d449c 100644 --- a/code/filesys.lisp +++ b/code/filesys.lisp @@ -6,7 +6,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.87 2005/08/22 20:29:19 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.88 2005/08/31 13:57:08 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -488,7 +488,7 @@ ((eq (first pathname-directory) :relative) ;; Relative directory so relative to default. pathname-directory) - ((and (> prefix-len 1) + ((and (>= prefix-len 1) (>= (length pathname-directory) prefix-len) (compare-component (subseq pathname-directory 0 prefix-len) -- GitLab