[patch] Fix linux readlink of dead link
Tijl Coosemans
tijl at FreeBSD.org
Sat Oct 14 17:05:00 UTC 2017
Hi,
Can you review the attached patch? Currently kern_alternate_path follows
symbolic links which means it fails to return the alternate path if it's
a dead link. This means syscalls like readlink and lstat fail on a dead
link that exists under /compat/linux but not under /. I also think it's
better to report an error to applications that try to open such a path
instead of ignoring the link and trying the path under /.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux.nofollow.patch
Type: text/x-patch
Size: 679 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20171014/d361d0e8/attachment.bin>
More information about the freebsd-emulation
mailing list