diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-08-13 16:45:49 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-08-13 16:45:49 +0300 |
commit | 006c1efbe8ab3cbc335e8d22971ae4496577294c (patch) | |
tree | 407259cb7ee2db74669853ad5ed5240087a7925f /tests/incr06.at | |
parent | aeffa4f266dbeb3325300a86ae7a6652589d2021 (diff) | |
download | tar-006c1efbe8ab3cbc335e8d22971ae4496577294c.tar.gz |
Fix interaction between --listed-incremental and -C
* src/incremen.c (read_directory_file): Execute eventual -C dir
after opening the snapshot file.
(collect_and_sort_names): Remove call to chdir_do
* tests/incr05.at, tests/incr06.at: Use relative file names for
snapshot files.
Diffstat (limited to 'tests/incr06.at')
-rw-r--r-- | tests/incr06.at | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/incr06.at b/tests/incr06.at index 6fcac3a3..7efd3f2e 100644 --- a/tests/incr06.at +++ b/tests/incr06.at @@ -28,20 +28,18 @@ genfile --file dir/file1 genfile --file dir/sub/file2 genfile --file dir/sub/a/file3 -dbfile=`pwd`/db - echo Level 0 . sub -tar -c -f archive-0.1.tar -g $dbfile.1 -C dir -v --warning=no-new-dir . sub +tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub echo Level 0 sub . -tar -c -f archive-0.2.tar -g $dbfile.2 -C dir -v --warning=no-new-dir sub . +tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub . mkdir dir/c genfile --file dir/sub/b/file4 echo Level 1 . sub -tar -c -f archive-1.1.tar -g $dbfile.1 -C dir -v --warning=no-new-dir . sub +tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub echo Level 1 sub . -tar -c -f archive-1.2.tar -g $dbfile.2 -C dir -v --warning=no-new-dir sub . +tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub . ], [0], [Level 0 . sub |