[Bug 257684] utimensat man page error
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 257684] utimensat man page error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Aug 2021 16:38:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257684 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- The code in question is: 3181 setbirthtime = 0; 3182 if (numtimes < 3 && !VOP_GETATTR(vp, &vattr, td->td_ucred) && 3183 timespeccmp(&ts[1], &vattr.va_birthtime, < )) 3184 setbirthtime = 1; i.e., we set setbirthtime = 1, when ts[1] < vattr.va_birthtime. The timespecs are offsets relative to the epoch, so ts[1] < vattr.va_birthtime means that the input time ts[1] is older than the recorded birth time. I believe this agrees with the documentation, so I don't understand where the bug is. -- You are receiving this mail because: You are on the CC list for the bug.