diff --git a/src/create.c b/src/create.c index 35bcf5b..aa7ba96 100644 --- a/src/create.c +++ b/src/create.c @@ -1724,10 +1724,10 @@ dump_file0 (struct tar_stat_info *st, char const *name, char const *p) /* See if we want only new files, and check if this one is too old to put in the archive. - This check is omitted if incremental_option is set *and* the + This check is omitted if listed_incremental_option is set *and* the requested file is not explicitly listed in the command line. */ - if (! (incremental_option && ! top_level) + if (! (listed_incremental_option && ! top_level) && !S_ISDIR (st->stat.st_mode) && OLDER_TAR_STAT_TIME (*st, m) && (!after_date_option || OLDER_TAR_STAT_TIME (*st, c)))