Package: tar
Version: 1.23-3
Severity: important

I have done a bash script to shows the bug:

#!/bin/sh

dirtest=tartest
if [ -d "$dirtest" ]; then
    echo please delete the folder $dirtest or change the variable dirtest in
this script.
    exit 1
fi

# create dir1/file1
mkdir -p "$dirtest/dir1"
touch "$dirtest/dir1/file1"

# create dir2/file1
mkdir "$dirtest/dir2"
touch "$dirtest/dir2/file1"

# incrememental 0
tar cz -g "$dirtest"0 -f "$dirtest"0.tgz "$dirtest"

# delete of dir1
rm -rf "$dirtest/dir1"

# move of dir2 in dir1
mv "$dirtest/dir2" "$dirtest/dir1"

# incremental 1
cp "$dirtest"0 "$dirtest"1
tar cz -g "$dirtest"1 -f "$dirtest"1.tgz "$dirtest"

# remove of dirtest
rm -rf "$dirtest"

# restore from tar
tar xz -g /dev/null -f "$dirtest"0.tgz
tar xz -g /dev/null -f "$dirtest"1.tgz



-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tar depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2                         1.0.5-6    high-quality block-sorting file co
pn  ncompress                     <none>     (no description available)
ii  xz-utils                      5.0.0-2    XZ-format compression utilities

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to