git: eab989e6a1aa - stable/15 - makefs: Fix build on systems without st_birthtime such as Linux
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Sep 2026 13:54:09 UTC
The branch stable/15 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=eab989e6a1aa563c255d61cec67cbd9d16a4d85d
commit eab989e6a1aa563c255d61cec67cbd9d16a4d85d
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-06-25 15:37:55 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-09-02 13:52:31 +0000
makefs: Fix build on systems without st_birthtime such as Linux
Reviewed by: emaste
Fixes: 0a301f33306c ("makefs cd9660: Populate creation time stamps in RockRidge extensions")
Pull Request: https://github.com/freebsd/freebsd-src/pull/2297
(cherry picked from commit 4e57c2aa307d34ca6e44f01c6fd671734ed5e486)
---
usr.sbin/makefs/cd9660/iso9660_rrip.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/usr.sbin/makefs/cd9660/iso9660_rrip.c b/usr.sbin/makefs/cd9660/iso9660_rrip.c
index ee84407e1344..a4a8ea85c559 100644
--- a/usr.sbin/makefs/cd9660/iso9660_rrip.c
+++ b/usr.sbin/makefs/cd9660/iso9660_rrip.c
@@ -750,8 +750,13 @@ cd9660node_rrip_tf(struct ISO_SUSP_ATTRIBUTES *p, fsnode *_node)
* expiration time, and effective time.
*/
+#if HAVE_STRUCT_STAT_BIRTHTIME
cd9660_time_915(p->attr.rr_entry.TF.timestamp,
_node->inode->st.st_birthtime);
+#else
+ cd9660_time_915(p->attr.rr_entry.TF.timestamp,
+ _node->inode->st.st_ctime);
+#endif
p->attr.rr_entry.TF.h.length[0] += 7;
cd9660_time_915(p->attr.rr_entry.TF.timestamp + 7,