Menu

#103 ioutil.c functions does not handle filesystem links right

v2.4.x
closed-accepted
nobody
None
bugfix
2015-10-31
2015-01-02
No

ioutil.c functions does not handle filesystem links right

This problem was found using SDL build on linux:
ioutil.c functions treats any symbolic-link as a file - no matter if the sym-link is actually for a directory.

How to test (under SDL): make a symbolic link that points to a directory and try to navigate to the directory using the sym-link. What happends is that vice will try to open the sym-links as if it was a file.

This is only a problem for platforms that define feature macro _DIRENT_HAVE_D_TYPE

The attached patch fixes the problem

/Uffe

1 Attachments

Discussion

  • Marco van den Heuvel

    Applied in rev 28972, thanx for the patch

     
  • gpz

    gpz - 2015-01-14
    • status: open --> pending-accepted
     
  • Marco van den Heuvel

    • status: pending-accepted --> closed-accepted
     
  • Marco van den Heuvel

    Closing.

     

Log in to post a comment.