⬢ DragonFlyBSD Kernel Audit
DF-3136 / fix.diff
← back to finding ↓ download raw
--- a/sys/vfs/dirfs/dirfs_subr.c	2026-06-29 12:51:19.000000000 +0000
+++ b/sys/vfs/dirfs/dirfs_subr.c	2026-10-26 03:30:28.492168405 +0000
@@ -354,11 +354,11 @@
 	dnp->dn_flags = st.st_flags;
 	dnp->dn_links = st.st_nlink;
 	dnp->dn_atime = st.st_atime;
-	dnp->dn_atimensec = (st.st_atime * 1000000000L);
+	dnp->dn_atimensec = st.st_atim.tv_nsec;
 	dnp->dn_mtime = st.st_mtime;
-	dnp->dn_mtimensec = (st.st_mtime * 1000000000L);
+	dnp->dn_mtimensec = st.st_mtim.tv_nsec;
 	dnp->dn_ctime = st.st_ctime;
-	dnp->dn_ctimensec = (st.st_ctime * 1000000000L);
+	dnp->dn_ctimensec = st.st_ctim.tv_nsec;
 	dnp->dn_gen = st.st_gen;
 	dnp->dn_ino = st.st_ino;
 	dnp->dn_st_dev = st.st_dev;