From 1ba2e42234b973260066623bb7eeda4c8b936d8e Mon Sep 17 00:00:00 2001
From: Jakob Unterwurzacher
Date: Sat, 8 May 2021 20:42:18 +0200
Subject: fusefrontend: avoid duplicate const definition

RENAME_NOREPLACE is already defined in syscallcompat.
---
 internal/fusefrontend/node.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'internal/fusefrontend')

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:
-- 
cgit v1.2.3