https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285630

            Bug ID: 285630
           Summary: makefs: cd9660 RockRidge extensions ignore timestamp
                    provided by -T
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: bnov...@freebsd.org

The cd9660 RockRidge extensions specify a TX record that stores the timestamp
from the underlying inode. However, makefs' implementation of the TF record
ignores a timestamp passed using the -T flag, making the resulting ISO image
nonreproducible.

This issue can be observed in the top-level directories by running 'diffoscope'
on two 'bootonly.iso' images that have been built back-to-back with a fixed
timestamp ('-T 1742574909'):

|  drwx------  18        0        0     4096 2025-03-21 16:35:09.000000 .
│ -drwxr-xr-x   2        0        0     6144 2025-03-24 14:48:55.000000 bin
│ --r-xr-xr-x   6        0        0        - 2025-03-24 14:48:55.000000 bin/cat
│ --r-xr-xr-x   6        0        0        - 2025-03-24 14:48:55.000000
bin/chflags
--snip--
| +drwxr-xr-x   2        0        0     6144 2025-03-24 14:57:38.000000 bin
│ +-r-xr-xr-x   6        0        0        - 2025-03-24 14:57:38.000000 bin/cat
│ +-r-xr-xr-x   6        0        0        - 2025-03-24 14:57:38.000000
bin/chflags

The dot directory record has the appropriate timestamp set, but the rest of the
directories do not.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to