Bug 419621 - cp cannot follow symbolic link
Summary: cp cannot follow symbolic link
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils
Version: 4.8
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Ondrej Vasik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 391511
TreeView+ depends on / blocked
 
Reported: 2007-12-11 12:01 UTC by Adam Stokes
Modified: 2018-10-20 00:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:06:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
provide proper behavior when dealing with links (868 bytes, patch)
2007-12-11 12:01 UTC, Adam Stokes
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0959 0 normal SHIPPED_LIVE coreutils bug fix update 2009-05-18 13:28:11 UTC

Description Adam Stokes 2007-12-11 12:01:07 UTC
Description of problem:
The simplest way to explain this problem is to show the steps :

# cd /tmp
# mkdir A
# cd A
# mkdir B
# ln -s B C
# cd /tmp
# cp -Lr /tmp/A/ /tmp/D
cp: will not create hard link `/tmp/D/C' to directory `/tmp/D/B'

"cp" tries to create a hard link instead of copying the source of directory.

Copying the source directory instead of creating the hardlink is default
behavior in RHEL5.

Version-Release number of selected component (if applicable):
coreutils-5.2.1-31.6

How reproducible:
100%

  
Actual results:

"cp" tries to create a hard link instead of copying the source of directory.

Expected results:
Should copy the entire directory to target.

Additional info:

Comment 1 Adam Stokes 2007-12-11 12:01:07 UTC
Created attachment 283971 [details]
provide proper behavior when dealing with links

Comment 6 Denys Vlasenko 2008-07-14 12:47:17 UTC
Data point: coreutils 6.10 seems to work correctly.

Comment 7 RHEL Program Management 2008-09-05 17:13:01 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 16 Petr Sklenar 2009-02-09 13:25:45 UTC
QA Whiteboard: RHTSdone, /CoreOS/coreutils/cp/bz419621_cp_symb_link

Comment 18 errata-xmlrpc 2009-05-18 20:06:58 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0959.html


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