summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/node.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-05-08 20:42:18 +0200
committerJakob Unterwurzacher2021-05-08 20:42:42 +0200
commit1ba2e42234b973260066623bb7eeda4c8b936d8e (patch)
tree6a0e565b3adba7d8c653b55edc56cf78737d4965 /internal/fusefrontend/node.go
parenta267562d291b15c192837da6f74c991892570fd6 (diff)
fusefrontend: avoid duplicate const definition
RENAME_NOREPLACE is already defined in syscallcompat.
Diffstat (limited to 'internal/fusefrontend/node.go')
-rw-r--r--internal/fusefrontend/node.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/fusefrontend/node.go b/internal/fusefrontend/node.go
index 72dd69d..543926d 100644
--- a/internal/fusefrontend/node.go
+++ b/internal/fusefrontend/node.go
@@ -364,12 +364,11 @@ func (n *Node) Symlink(ctx context.Context, target, name string, out *fuse.Entry
// Reject those flags with syscall.EINVAL.
// If we can handle the flags, this function returns 0.
func rejectRenameFlags(flags uint32) syscall.Errno {
- const RENAME_NOREPLACE = 1
switch flags {
case 0:
// Normal rename, we can handle that
return 0
- case RENAME_NOREPLACE:
+ case syscallcompat.RENAME_NOREPLACE:
// We also can handle RENAME_NOREPLACE
return 0
default: