]> git.saurik.com Git - apple/libc.git/commitdiff
Libc-391.4.2.tar.gz mac-os-x-1046x86 v391.4.2
authorApple <opensource@apple.com>
Tue, 7 Feb 2006 01:36:31 +0000 (01:36 +0000)
committerApple <opensource@apple.com>
Tue, 7 Feb 2006 01:36:31 +0000 (01:36 +0000)
darwin/copyfile.c
i386/sys/commpage.c

index 3e5fc22aba2f66fa78c207e166126d82865b510d..69ffc7bbd1b126bb5d164b834e2e31b732ce0021 100644 (file)
@@ -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
index fa1d6fe0ba92cd1efb07d958d82ee66426945ddd..cec8c8ddfa7bad7eb09159c84a1abf3b16a0a240 100644 (file)
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#ifndef _OPEN_SOURCE_
+
+#define __APPLE_API_PRIVATE
+#include <machine/cpu_capabilities.h>
+#undef  __APPLE_API_PRIVATE
+
+const void* __commpage_dsmos()
+{
+       return ((const void*) _COMM_PAGE_SYSTEM_INTEGRITY);
+}
+
+#endif