HomeFreeBSD

cd9660: Unbreak symbolic links

Description

cd9660: Unbreak symbolic links

Since the introduction of permission masks, cd9660_getattr() returns a
size of zero for all symbolic links, because the code to retrieve the
length of the link target (as required by POSIX) is dead, since we strip
away the type bits before we try to use them to identify the file as a
link. Address this by checking the vnode type instead.

PR: 290556
MFC after: 3 days
Fixes: 82f2275b73e5 ("cd9660: Add support for mask,dirmask,uid,gid options")
Reviewed by: olce
Differential Revision: https://reviews.freebsd.org/D53598

(cherry picked from commit 978aaa72f3196f5489630052762cac5a7863e774)

Details

Provenance
desAuthored on Nov 10 2025, 1:58 PM
Reviewer
olce
Differential Revision
D53598: cd9660: Unbreak symbolic links
Parents
rG2bce3c9fcd57: dtrace_io.4: Use bio_length instead of bio_bcount in examples
Branches
Unknown
Tags
Unknown