bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] --incremental --newer always archive all files


From: Jean-Louis Martineau
Subject: [Bug-tar] --incremental --newer always archive all files
Date: Thu, 8 Feb 2018 16:04:00 +0000

example:
---------------
mkdir dirA
echo 'a' > dirA/a
echo 'a' > dirA/b
tar -vcf test.0.tar -incremental --newer '2150-02-08 21:50:00' dirA
tar: dirA: Directory is new
dirA/
dirA/a
dirA/b
---------------

It should not archive dirA/a and dirA/b

In src/create.c:
--------------------
This check is omitted if incremental_option is set *and* the
requested file is not explicitly listed in the command line. */

if (! (incremental_option && ! top_level)
--------------------

I do not understand why this check is done, maybe you want it for --listed-incremental but it looks buggy for --incremental where we want to compare the mtime for all files

The attached patch fix it and pass all 'make check'.

Jean-Louis


Disclaimer

This message is the property of CARBONITE, INC. and may contain confidential or privileged information.

If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone. Instead, destroy it and notify me by reply e-mail.

Attachment: tar-incremental-newer.diff
Description: tar-incremental-newer.diff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]