bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Tar 1.27 has become non-deterministic


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Tar 1.27 has become non-deterministic
Date: Sun, 03 Nov 2013 21:31:29 +0200

Hi David,

> The new version of tar has become non-deterministic.
> It looks like now it stores its own creation time or something internally.

Please try the attached patch.

Regards,
Sergey

diff --git a/src/create.c b/src/create.c
index e14e13d..ab5bb6e 100644
--- a/src/create.c
+++ b/src/create.c
@@ -543,7 +543,7 @@ write_gnu_long_link (struct tar_stat_info *st, const char 
*p, char type)
   union block *header;
   char *tmpname;

-  header = start_private_header ("././@LongLink", size, start_time.tv_sec);
+  header = start_private_header ("././@LongLink", size, (time_t)-1);
   uid_to_uname (0, &tmpname);
   UNAME_TO_CHARS (tmpname, header->header.uname);
   free (tmpname);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]