[BusyBox 0001509]: tar does not remove leading / from hard link target

bugs at busybox.net bugs at busybox.net
Mon Sep 24 18:44:08 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1509 
====================================================================== 
Reported By:                Dwight Engen
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1509
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-24-2007 06:54 PDT
Last Modified:              09-24-2007 11:44 PDT
====================================================================== 
Summary:                    tar does not remove leading / from hard link target
Description: 
Since busybox tar does not strip the leading slash when saving a hard link,
attempting to restore a tar with hard links in it on a mounted volume
results in EXDEV from link(2). A patch is provided which fixes the
problem.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 09-24-07 11:44  
---------------------------------------------------------------------- 
In an empty directory with busybox's executable only:

$ ln busybox busybox_z
$ ./busybox tar cf ../z.tar *
$ mkdir z; cd z
$ ../busybox tar xf ../../z.tar
$ ls -li
total 1528
7340110 -rwxr-xr-x 2 vda eng 775788 Sep 24 19:28 busybox
7340110 -rwxr-xr-x 2 vda eng 775788 Sep 24 19:28 busybox_z

Please provide a testcase where it fails. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-24-07 06:54  Dwight Engen   New Issue                                    
09-24-07 06:54  Dwight Engen   Status                   new => assigned     
09-24-07 06:54  Dwight Engen   Assigned To               => BusyBox         
09-24-07 06:54  Dwight Engen   File Added: tar.patch                        
09-24-07 11:44  vda            Note Added: 0002792                          
======================================================================




More information about the busybox-cvs mailing list