diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-01-13 01:02:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-01-13 01:02:57 +0000 |
commit | bd6c2f418ce4e1d369c46840ccf89bf8b03e83bb (patch) | |
tree | f87b6d2a5496a58d9f20d9a07930c5f655d0000e /lib/common/BoxPlatform.h | |
parent | b01211dc4b77264d9042f9a3d6223710953d24dd (diff) |
Ignore symlink permissions on Darwin, where they can't be set properly
after symlink creation (refs #3)
Diffstat (limited to 'lib/common/BoxPlatform.h')
-rw-r--r-- | lib/common/BoxPlatform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h index 3ae929ef..4b58d31d 100644 --- a/lib/common/BoxPlatform.h +++ b/lib/common/BoxPlatform.h @@ -57,6 +57,14 @@ #define PLATFORM_DISABLE_MEM_LEAK_TESTING #endif +// Darwin also has a weird idea of permissions and dates on symlinks: +// perms are fixed at creation time by your umask, and dates can't be +// changed. This breaks unit tests if we try to compare these things. +// See: http://lists.apple.com/archives/darwin-kernel/2006/Dec/msg00057.html +#ifdef __APPLE__ + #define PLATFORM_DISABLE_SYMLINK_ATTRIB_COMPARE +#endif + // Find out if credentials on UNIX sockets can be obtained #ifndef HAVE_GETPEEREID #if !HAVE_DECL_SO_PEERCRED |