]> Dogcows Code - chaz/tar/commitdiff
(set_stat): Rewrite to avoid bug in Forte
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Nov 2005 21:25:47 +0000 (21:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Nov 2005 21:25:47 +0000 (21:25 +0000)
Developer 7 C 5.4 Patch 111708-09 (2004-02-19).

src/extract.c

index d826371683a62a2f4d4ca5160a0a3f49974b75c4..2689f547684a317574927089cb6069f9fc770376 100644 (file)
@@ -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)
This page took 0.023709 seconds and 4 git commands to generate.