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 Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/boot/zfs/zfsimpl.c | ||
---|---|---|
2294 ↗ | (On Diff #25494) | no, it does not. |
sys/boot/zfs/zfsimpl.c | ||
---|---|---|
2282 ↗ | (On Diff #25520) | 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); ... } |