X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fcreate.c;h=59231ac51d466c1f6456ee1a4316996389956f11;hb=2de1477b3d5cba5876883e320c9eb0523fb77b3c;hp=cc75bb8bf059d90906ff365d6188db687faea592;hpb=93a4273b66545b6c072567d01c8846dc0840d2ed;p=chaz%2Ftar diff --git a/src/create.c b/src/create.c index cc75bb8..59231ac 100644 --- a/src/create.c +++ b/src/create.c @@ -972,8 +972,8 @@ dump_dir0 (char *directory, return; if (one_file_system_option - && !top_level - && parent_device != stat->stat.st_dev) + && !top_level + && parent_device != stat->stat.st_dev) { if (verbose_option) WARN ((0, 0, @@ -1293,12 +1293,11 @@ dump_file0 (struct tar_stat_info *stat, char *p, /* See if we want only new files, and check if this one is too old to put in the archive. */ - if ((0 < top_level || !incremental_option) - && !S_ISDIR (stat->stat.st_mode) + if (!S_ISDIR (stat->stat.st_mode) && stat->stat.st_mtime < newer_mtime_option && (!after_date_option || stat->stat.st_ctime < newer_ctime_option)) { - if (0 < top_level) + if (0 < top_level) /* equivalent to !incremental_option */ WARN ((0, 0, _("%s: file is unchanged; not dumped"), quotearg_colon (p))); /* FIXME: recheck this return. */