www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11501] New: dirEntries fails with "Failed to stat file" when encountering broken symlinks

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11501

           Summary: dirEntries fails with "Failed to stat file" when
                    encountering broken symlinks
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-11-11 14:39:52 PST ---
on posix (at least OSX), create a broken symlink somewhere inside a directory
dirEntries will fail when it encounters it.
correct behavior should be to skip by default broken symlinks (maybe introduce
an option to throw) as try/catch is expensive; or maybe populate statbuf with
special values when this happens instead of throwing.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 11 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11501



--- Comment #1 from thelastmammoth gmail.com 2013-11-11 15:08:38 PST ---
actually this problem is very annoying because we can't even write a wrapper
around popFront for dirEntries that would try/catch, as if we did this there
would never be an actual pop.

So when we dont' have w access to fix the said broken symlinks, we're .. stuck

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 11 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11501


Mike Wey <mike-wey planet.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mike-wey planet.nl
         Resolution|                            |DUPLICATE


--- Comment #2 from Mike Wey <mike-wey planet.nl> 2013-11-13 13:15:52 PST ---
*** This issue has been marked as a duplicate of issue 8298 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2013