bad DIRECTORY listing from broken symlinks

Bug #1400003 reported by 3b on 2014-12-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

(directory #P"/tmp/bar/") returns (#P"/tmp/") when /tmp/bar is a broken symlink.
same result on various versions from to, all x8664 linux.

on 1.0.25, x8664 linux it returns NIL as expected.

Cannot reproduce, unless these steps are incorrect on creating the broken symlink:

burton@burton-xubuntu:~/sbcl$ cd /tmp
burton@burton-xubuntu:/tmp$ ln -s bar x
burton@burton-xubuntu:/tmp$ ls bar
ls: cannot access bar: No such file or directory
burton@burton-xubuntu:/tmp$ sbcl
This is SBCL, an implementation of ANSI Common Lisp.
More information about SBCL is available at <>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (directory #P"/tmp/bar")

* (directory #P"/tmp/bar/")


Stas Boukarev (stassats) wrote :

In 668e35b1c8d5e63d4927da6658330cd9e75d1110

Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats) on 2015-06-29
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers