bad DIRECTORY listing from broken symlinks

Bug #1400003 reported by 3b
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

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

on 1.0.25, x8664 linux it returns NIL as expected.

Revision history for this message
Burton Samograd (burton-samograd) wrote :

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 1.2.6.136-428fd6f, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

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")

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

NIL
*

Revision history for this message
Stas Boukarev (stassats) wrote :

In 668e35b1c8d5e63d4927da6658330cd9e75d1110

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.