Bug 150951

Summary: cp -L option is ignored if -l is used
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Severity: low Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-14 07:17:53 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Robin Green 2005-03-12 11:08:27 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2

Description of problem:
The info page for cp says that the -L option will always dereference symbolic links. However, it does not do so if the -l option is also used.

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

How reproducible:

Steps to Reproduce:
1. cp -lL /lib/libc.so.6 /tmp
2. ls -l /tmp/libc.so.6

Actual Results:  lrwxrwxrwx  3 root root 13 Mar 12 09:04 /tmp/libc.so.6 -> libc-2.3.4.so

Expected Results:  -rwxr-xr-x  1 root root 1509072 Mar 12 11:06 /tmp/libc.so.6

Additional info:

The expected result obtains if the -l option is omitted.
Comment 1 Tim Waugh 2005-03-14 07:17:53 EST
Reported upstream.

(not in archive yet)