X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcreate.c;h=d583e7febecdbaee6a96d0fe4bd3acdc4f5ce8b4;hb=75bf036edc1425eb66dcc9623846c7204f943ce6;hp=b7b41c425086c38eb39cb289a3db06d0ec29f6a0;hpb=c50565d9655329deb983c3df5b151d1fe2032953;p=chaz%2Ftar diff --git a/src/create.c b/src/create.c index b7b41c4..d583e7f 100644 --- a/src/create.c +++ b/src/create.c @@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "system.h" +#include #if HAVE_UTIME_H # include @@ -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; }