[BusyBox 0001511]: cp -rp don't copy symbolic link (busybox 1.7.1)

bugs at busybox.net bugs at busybox.net
Tue Sep 25 18:07:12 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1511 
====================================================================== 
Reported By:                ThomasHawk
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1511
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             09-25-2007 07:04 PDT
Last Modified:              09-25-2007 11:07 PDT
====================================================================== 
Summary:                    cp -rp don't copy symbolic link (busybox 1.7.1)
Description: 
If I have a directory which contains symbolic link eg:
# mkdir /tmp1
# touch /a
# ln -s /a /tmp1/a

if I copy this directory with "cp -rp", busybox copy the file (/a) an not
the symbolic link 

# cp -rp /tmp1 /tmp2
# ls -lsa /tmp1
   4 drwxr-xr-x    2 root     root         4096 Sep 25 16:12 .
   4 drwxr-xr-x   14 root     root         4096 Sep 25 16:13 ..
   0 lrwxrwxrwx    1 root     root            8 Sep 25 16:12 a -> /a
# ls -lsa /tmp2
   4 drwxr-xr-x    2 root     root         4096 Sep 25 16:12 .
   4 drwxr-xr-x   14 root     root         4096 Sep 25 16:13 ..
   0 -rw-r--r--    1 root     root            0 Sep 25 16:12 a

====================================================================== 

---------------------------------------------------------------------- 
 ThomasHawk - 09-25-07 07:14  
---------------------------------------------------------------------- 
sorry,

If I add -d (cp -rpd) that correct the problem.

(cp in coreutils don't need -d to preserve links)

Please close this bug. Sorry 

---------------------------------------------------------------------- 
 vda - 09-25-07 11:07  
---------------------------------------------------------------------- 
Fixed in rev 20024. Thanks. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-25-07 07:04  ThomasHawk     New Issue                                    
09-25-07 07:04  ThomasHawk     Status                   new => assigned     
09-25-07 07:04  ThomasHawk     Assigned To               => BusyBox         
09-25-07 07:14  ThomasHawk     Note Added: 0002796                          
09-25-07 11:07  vda            Status                   assigned => closed  
09-25-07 11:07  vda            Note Added: 0002797                          
======================================================================




More information about the busybox-cvs mailing list