From: Sergey Poznyakoff Date: Wed, 1 Sep 2004 15:05:09 +0000 (+0000) Subject: (dump_file0): Fix bug introduced 2004-02-21. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=19335cdfb4bd2a246c26f8f36ebbec3f75e7846f;hp=4e4e8c57fd19b70aed0b38aa59cb97f566887123;p=chaz%2Ftar (dump_file0): Fix bug introduced 2004-02-21. --- diff --git a/src/create.c b/src/create.c index b7b41c4..793007f 100644 --- a/src/create.c +++ b/src/create.c @@ -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; }