OpenSolaris

Printable Version Enter a New Search
Bug ID 6664592
Synopsis cp -pr appears to be broken
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:file
Keywords
Responsible Engineer Basabi Bhattacharya
Reported Against snv_77
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_85
Fixed In snv_85
Release Fixed solaris_nevada(snv_85)
Related Bugs 6630790 , 6639830
Submit Date 19-February-2008
Last Update Date 12-March-2008
Description
cp -pr fails to copy certain files.  An ISO build of Nevada build 83 failed to install due
to files missing from the SUNWhea package (header file). usr/include/sys/sunddi.h was
missing, as was sunmdi.h.  However, sunndi.h was present.

The RE build script add_to_install_server invokes 'cp -pr' to copy packages from
the build area into the DVD build image.  pkgchk confirms the package is fine in the
CD build image but missing files in the DVD build image.

The last changes to cp/mv where in build 79, and 6630790 in particular had to deal with
the -p behavior.

I verified that the missing files only occur when cp is invoked with '-pr'.  cp -r
copies the entire directory tree.

I verified on a machine running build 75, cp -pr performs as expected.
I verifued on a machine running build 82, cp -pr of the SUNWhea package fails.

To reproduce:

cd /net/xenbld/sp1/jhd/mx31/83/wos/solaris_5.product/Solaris_11/Product
cp -pr SUNWhea /tmp
pkgchk -f /tmp SUNWhea
find /tmp/SUNWhea -name 'sunddi.h' -print
Work Around
Use 'find | cpio'
Comments
N/A