From: Apple Date: Tue, 7 Feb 2006 01:36:31 +0000 (+0000) Subject: Libc-391.4.2.tar.gz X-Git-Tag: mac-os-x-1046x86^0 X-Git-Url: https://git.saurik.com/apple/libc.git/commitdiff_plain/0f515e2640e2e985571823ee2493b5476430df45?ds=inline Libc-391.4.2.tar.gz --- diff --git a/darwin/copyfile.c b/darwin/copyfile.c index 3e5fc22..69ffc7b 100644 --- a/darwin/copyfile.c +++ b/darwin/copyfile.c @@ -143,6 +143,9 @@ int copyfile(const char *src, const char *dst, copyfile_state_t state, copyfile_ } } else if (COPYFILE_UNPACK & flags) { + if (!(COPYFILE_STAT & flags || COPYFILE_ACL & flags)) + fix_perms = !copyfile_fix_perms(s, &original_fsec, 1); + if (copyfile_unpack(s) < 0) ret = -1; } else diff --git a/i386/sys/commpage.c b/i386/sys/commpage.c index fa1d6fe..cec8c8d 100644 --- a/i386/sys/commpage.c +++ b/i386/sys/commpage.c @@ -21,3 +21,15 @@ * @APPLE_LICENSE_HEADER_END@ */ +#ifndef _OPEN_SOURCE_ + +#define __APPLE_API_PRIVATE +#include +#undef __APPLE_API_PRIVATE + +const void* __commpage_dsmos() +{ + return ((const void*) _COMM_PAGE_SYSTEM_INTEGRITY); +} + +#endif