? cscope.out Index: bzip2.c =================================================================== RCS file: /cvs/root/bzip2/bzip2/Attic/bzip2.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -d -b -p -r1.1.1.1 -r1.1.1.1.2.1 --- bzip2.c 2002/04/29 21:22:53 1.1.1.1 +++ bzip2.c 2004/08/14 00:35:08 1.1.1.1.2.1 @@ -244,6 +244,9 @@ #endif /* BZ_LCCWIN32 */ +#ifdef __APPLE__ +#include +#endif /*---------------------------------------------*/ /*-- @@ -1141,6 +1144,9 @@ void applySavedMetaInfoToOutputFile ( Ch ERROR_IF_NOT_ZERO ( retVal ); retVal = chown ( dstName, fileMetaInfo.st_uid, fileMetaInfo.st_gid ); +#if __APPLE__ + copyfile(inName, outName, 0, COPYFILE_ACL | COPYFILE_XATTR); +#endif /* chown() will in many cases return with EPERM, which can be safely ignored. */