git: cd9660: Fix ISO_SUSP_CFLAG_ROOT handling in RockRidge
Aaron LI
aly at crater.dragonflybsd.org
Tue Feb 18 17:41:59 PST 2025
commit 0c760dba5d59e854ea4e372bc3c6991e5ab49f9f
Author: Aaron LI <aly at aaronly.me>
Date: Tue Feb 18 09:39:32 2025 +0800
cd9660: Fix ISO_SUSP_CFLAG_ROOT handling in RockRidge
When encountering a ISO_SUSP_CFLAG_ROOT element in Rock Ridge processing,
this actually means there's a double slash recorded in the symbolic
link's path name. We used to start over from / then, which caused link
targets like "../../bsdi.1.0/include//pathnames.h" to be interpreted as
/pathnahes.h. This is both contradictionary to our conventional slash
interpretation, as well as potentially dangerous.
The right thing to do is (obviously) to just ignore that element.
Obtained-from: FreeBSD (commit f7d5a5328faa1cb0b6ad60860e8f46d748507c88)
Summary of changes:
sys/vfs/isofs/cd9660/cd9660_rrip.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c760dba5d59e854ea4e372bc3c6991e5ab49f9f
--
DragonFly BSD source repository
More information about the Commits
mailing list