summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_darwin.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2022-01-22 12:28:27 +0100
committerJakob Unterwurzacher2022-01-22 12:28:27 +0100
commitb7cac4ffd07733ab6bcd0d33345de3306a8a5a59 (patch)
treeac8d9f593bcdce3abd7a8bb4d62e4ca7e6b986c2 /internal/syscallcompat/sys_darwin.go
parent3ca2b1983dbab14e3769efd126098cbca6fb2ffd (diff)
fusefrontend: support RENAME_WHITEOUT, RENAME_EXCHANGE
Both new internal test and xfstests generic/013 are happy. https://github.com/rfjakob/gocryptfs/issues/641
Diffstat (limited to 'internal/syscallcompat/sys_darwin.go')
-rw-r--r--internal/syscallcompat/sys_darwin.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/syscallcompat/sys_darwin.go b/internal/syscallcompat/sys_darwin.go
index de795a4..7b8773c 100644
--- a/internal/syscallcompat/sys_darwin.go
+++ b/internal/syscallcompat/sys_darwin.go
@@ -21,8 +21,10 @@ const (
// O_PATH is only defined on Linux
O_PATH = 0
- // RENAME_NOREPLACE is only defined on Linux
+ // Only defined on Linux
RENAME_NOREPLACE = 0
+ RENAME_WHITEOUT = 0
+ RENAME_EXCHANGE = 0
// KAUTH_UID_NONE and KAUTH_GID_NONE are special values to
// revert permissions to the process credentials.