From 0f515e2640e2e985571823ee2493b5476430df45 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 7 Feb 2006 01:36:31 +0000 Subject: [PATCH] Libc-391.4.2.tar.gz --- darwin/copyfile.c | 3 +++ i386/sys/commpage.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) 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 -- 2.50.0