Skip to content

Commit

Permalink
Don't set 0 mtime on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 27, 2021
1 parent a37e9fd commit 2d08ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ impl Header {
HeaderMode::Deterministic => {
self.set_uid(0);
self.set_gid(0);
self.set_mtime(0);
self.set_mtime(123456789); // see above in unix
let fs_mode = if meta.is_dir() { 0o755 } else { 0o644 };
self.set_mode(fs_mode);
}
Expand Down

0 comments on commit 2d08ac7

Please sign in to comment.