Package: tar
Version: 1.14-2
Severity: important

When over writing a tar archive with a file pattern that matches that
archive and using --remove-files, tar will remove the newly created
archive.

Example:

touch file1.txt
touch file2.txt
touch file3.txt
# oops.. put the star in the wrong place
tar --remove-files -zcf txt.tgz txt*
# fixed, but the tar file was created
tar --remove-files -zcf txt.tgz *txt*
# we now have an empty directory
ls


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages tar depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

tar recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to