Bug 782628 - tar (1.23) does not remove files when -r flag used (append to tar file)
Summary: tar (1.23) does not remove files when -r flag used (append to tar file)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tar
Version: 6.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Raiskup
QA Contact: Branislav Blaškovič
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-18 00:07 UTC by ashish
Modified: 2018-11-28 21:19 UTC (History)
3 users (show)

Fixed In Version: tar-1.23-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:49:35 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0849 0 normal SHIPPED_LIVE tar bug fix and enhancement update 2012-06-19 20:48:42 UTC

Description ashish 2012-01-18 00:07:27 UTC
Description of problem:
tar (1.23) does not remove files when -r flag used (append to tar file)

Version-Release number of selected component (if applicable):
tar version 1.23 , shipped with RHEl6.1 and RHEL6.2

How reproducible:


Steps to Reproduce:
touch remove_me.txt
tar --remove-files -rvf appendtome.tar remove_me.txt
remove_me.txt

#####the file should be gone now - but is not and  can be seen by the ls command. 
ls r*
remove_me.txt

tar -tf  appendtome.tar
remove_me.txt
##ok when you are creating a tar file tho'
tar --remove-files -cvf appendtome.tar remove_me.txt
remove_me.txt
ls r*
ls: cannot access r*: No such file or directory

  
Actual results:
On issuing below command :
tar --remove-files -rvf appendtome.tar remove_me.txt

The file remove_me.txt is not removed from the current pwd after adding in tar ball.

Expected results:
tar --remove-files -rvf appendtome.tar remove_me.txt

The file remove_me.txt should be  removed from the current pwd after adding in tar ball.

Additional info:

Comment 2 Kamil Dudka 2012-01-18 00:54:07 UTC
upstream commit:

http://git.savannah.gnu.org/cgit/tar.git/commit/?id=45a5741

Comment 9 errata-xmlrpc 2012-06-20 13:49:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0849.html


Note You need to log in before you can comment on or make changes to this bug.