Loading...
--- Libc/Libc-1725.40.4/sys/statx_np.c
+++ Libc/Libc-498/sys/statx_np.c
@@ -31,7 +31,7 @@
#include <string.h>
#include <stdio.h>
-#define ACL_MIN_SIZE_HEURISTIC (KAUTH_FILESEC_SIZE(16))
+#define ACL_MIN_SIZE_HEURISTIC (sizeof(struct kauth_filesec) + 16 * sizeof(struct kauth_ace))
static int statx_syscall(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size);
static int fstatx_syscall(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size);
@@ -69,7 +69,7 @@
}
-#if __DARWIN_64_BIT_INO_T && !__DARWIN_ONLY_64_BIT_INO_T
+#if __DARWIN_64_BIT_INO_T
int
statx64_np(const char *path, struct stat64 *sb, filesec_t fsec)
{
@@ -87,7 +87,7 @@
{
return(lstatx_np(path, (struct stat *)sb, fsec));
}
-#endif /* __DARWIN_64_BIT_INO_T && !__DARWIN_ONLY_64_BIT_INO_T */
+#endif /* __DARWIN_64_BIT_INO_T */
/*
* Stat syscalls
@@ -143,7 +143,7 @@
int (* stat_syscall)(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size),
void *sbptr, filesec_t fsec)
{
- kauth_filesec_t fsacl, ofsacl;
+ struct kauth_filesec *fsacl, *ofsacl;
size_t fsacl_size, buffer_size;
int error;
struct stat * sb = (struct stat *)0;