Skip to content
Snippets Groups Projects
Commit 3e7b0297 authored by rtoy's avatar rtoy
Browse files

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.
parent 77c11107
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (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.") ...@@ -3483,6 +3483,9 @@ in at a time in poll.")
(setf len (length pending)) (setf len (length pending))
(setf name-start 0))) (setf name-start 0)))
((= name-end len) ((= name-end len)
(when (eq kind :directory)
(setf (schar result new-fill-ptr) #\/)
(incf new-fill-ptr))
(return (subseq result 0 new-fill-ptr))) (return (subseq result 0 new-fill-ptr)))
((eq kind :directory) ((eq kind :directory)
(setf (schar result new-fill-ptr) #\/) (setf (schar result new-fill-ptr) #\/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment