Date: Sun, 08 Aug 2021 16:38:01 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257684] utimensat man page error Message-ID: <bug-257684-227-YroknbeE61@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-257684-227@https.bugs.freebsd.org/bugzilla/> References: <bug-257684-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257684 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 =3D 0;=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 3182 if (numtimes < 3 && !VOP_GETATTR(vp, &vattr, td->td_ucred) &&= =20=20=20=20=20=20 3183 timespeccmp(&ts[1], &vattr.va_birthtime, < ))=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 3184 setbirthtime =3D 1; i.e., we set setbirthtime =3D 1, when ts[1] < vattr.va_birthtime. The time= specs 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 agr= ees with the documentation, so I don't understand where the bug is. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257684-227-YroknbeE61>