From 3e7b029735c69cd89a6a5a79e38d7194cdc00b53 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Mon, 10 Oct 2005 20:31:13 +0000 Subject: [PATCH] If the pathname for PROBE-FILE is actually a directory, have PROBE-FILE return a pathname with directory and name components set appropriately. This is done by having UNIX-RESOLVE-LINKS append a slash when the pathname actually names a directory and not a file. --- code/unix-glibc2.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/unix-glibc2.lisp b/code/unix-glibc2.lisp index affddd951..2a9ef10c9 100644 --- a/code/unix-glibc2.lisp +++ b/code/unix-glibc2.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix-glibc2.lisp,v 1.35 2005/01/27 15:23:33 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix-glibc2.lisp,v 1.36 2005/10/10 20:31:13 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -3483,6 +3483,9 @@ in at a time in poll.") (setf len (length pending)) (setf name-start 0))) ((= name-end len) + (when (eq kind :directory) + (setf (schar result new-fill-ptr) #\/) + (incf new-fill-ptr)) (return (subseq result 0 new-fill-ptr))) ((eq kind :directory) (setf (schar result new-fill-ptr) #\/) -- GitLab