As the current zfs file system is providing symlink via system attributes, need to update the code accordingly.
Details
Details
Tested by browsing and reading different symlinks and by using names like /usr/bin/../lib, bin/.., etc/., etc/./inet, ./bin
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 7612 Build 7762: arc lint + arc unit
Event Timeline
sys/boot/zfs/zfsimpl.c | ||
---|---|---|
2294 | no, it does not. |
sys/boot/zfs/zfsimpl.c | ||
---|---|---|
2282 | Just spotted that if you invert the condition you get an arguably cleaner flow e.g. else { if ((dn->dn_flags & DNODE_FLAG_SPILL_BLKPTR) == 0) return (EIO); blkptr_t *bp = &dn->dn_spill; size = BP_GET_LSIZE(bp); ... } |