Skip to content

Commit 60c6bd8

Browse files
authored
Use rust birthday for HeaderMode::Deterministic timestamp (#262)
As described in rust-lang/crates.io#3859, the current arbitrary timestamp of 123456789 leads to Debian packages being auto-rejected due to the old timestamp. This happens for any timestamps before 1975. Instead of 123456789, use another, more recent arbitrary timestamp -- the timestamp of the first commit for what would become Rust. graydon/rust-prehistory@b0fd440
1 parent a746675 commit 60c6bd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/header.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ impl Header {
741741
//
742742
// We just need things to be deterministic here so just pick
743743
// something that isn't zero. This time, chosen after careful
744-
// deliberation, corresponds to Nov 29, 1973.
745-
self.set_mtime(123456789);
744+
// deliberation, corresponds to Jul 23, 2006 -- the date of the
745+
// first commit for what would become Rust.
746+
self.set_mtime(1153704088);
746747

747748
self.set_uid(0);
748749
self.set_gid(0);

0 commit comments

Comments
 (0)