]> Dogcows Code - chaz/tar/blobdiff - src/extract.c
* src/tar.c (NS_PRECISION_FORMAT_MASK): New macro.
[chaz/tar] / src / extract.c
index d826371683a62a2f4d4ca5160a0a3f49974b75c4..fbb93edd8a85a864feaadd85807841e7faed9e96 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)
@@ -466,7 +469,7 @@ file_newer_p (const char *file_name, struct tar_stat_info *tar_stat)
       return errno != ENOENT;
     }
   if (!S_ISDIR (st.st_mode)
-      && timespec_cmp (tar_stat->mtime, get_stat_mtime (&st)) <= 0)
+      && tar_timespec_cmp (tar_stat->mtime, get_stat_mtime (&st)) <= 0)
     {
       return true;
     }
This page took 0.020721 seconds and 4 git commands to generate.