The birthtime field of struct vattr does not checked for VNOVAL in case of ext2_setattr() and produce incorrect inode birthtime values.
Details
Details
- Reviewers
pfg - Commits
- rG1484574843a3: Fix inode birthtime updating logic.
Found using pjdfstest: pjdfstest/tests/utimensat/03.t.
Testcase passed after fix.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/fs/ext2fs/ext2_vnops.c | ||
---|---|---|
380 | May be let's leave it as is. The concern is, that if expression without braces looks strange. Also, we have same if expressions with braces in the ext2_inode_cnv.c. |