]> Dogcows Code - chaz/tar/commitdiff
(dump_file0): Fix bug introduced 2004-02-21.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 1 Sep 2004 15:05:09 +0000 (15:05 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 1 Sep 2004 15:05:09 +0000 (15:05 +0000)
src/create.c

index b7b41c425086c38eb39cb289a3db06d0ec29f6a0..793007f146dcb2d3dded06b7cb5b8dc9d502f2d9 100644 (file)
@@ -1322,16 +1322,19 @@ dump_file0 (struct tar_stat_info *st, char *p,
 #endif
 
   /* See if we want only new files, and check if this one is too old to
-     put in the archive.  */
+     put in the archive.
 
-  if (!S_ISDIR (st->stat.st_mode)
+     This check is omitted if incremental_option is set *and* the
+     requested file is not explicitely listed in the command line. */
+
+  if (!(incremental_option && !is_individual_file (p))
+      && !S_ISDIR (st->stat.st_mode)
       && OLDER_STAT_TIME (st->stat, m)
       && (!after_date_option || OLDER_STAT_TIME (st->stat, c)))
     {
-      if (0 < top_level) /* equivalent to !incremental_option */
+      if (!incremental_option)
        WARN ((0, 0, _("%s: file is unchanged; not dumped"),
               quotearg_colon (p)));
-      /* FIXME: recheck this return.  */
       return;
     }
 
This page took 0.026441 seconds and 4 git commands to generate.