bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] work around bug in Forte Developer 7 (as of Sun patch 111708-0


From: Paul Eggert
Subject: [Bug-tar] work around bug in Forte Developer 7 (as of Sun patch 111708-09)
Date: Fri, 04 Nov 2005 13:28:00 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this to work around a bug in the Forte type-checker that
caused a build of 'tar' to fail on Solaris 8.

2005-11-04  Paul Eggert  <address@hidden>

        * src/extract.c (set_stat): Rewrite to avoid bug in Forte
        Developer 7 C 5.4 Patch 111708-09 (2004-02-19).

--- extract.c   17 Sep 2005 06:41:56 -0000      1.81
+++ extract.c   4 Nov 2005 21:25:47 -0000       1.82
@@ -262,7 +262,10 @@ set_stat (char const *file_name,
          /* FIXME: incremental_option should set ctime too, but how?  */
 
          struct timespec ts[2];
-         ts[0] = incremental_option ? st->atime : start_time;
+         if (incremental_option)
+           ts[0] = st->atime;
+         else
+           ts[0] = start_time;
          ts[1] = st->mtime;
 
          if (utimens (file_name, ts) != 0)




reply via email to

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