fusefrontend: avoid duplicate const definition

RENAME_NOREPLACE is already defined in syscallcompat.
This commit is contained in:
Jakob Unterwurzacher 2021-05-08 20:42:18 +02:00
parent a267562d29
commit 1ba2e42234

View File

@ -364,12 +364,11 @@ func (n *Node) Symlink(ctx context.Context, target, name string, out *fuse.Entry
// Reject those flags with syscall.EINVAL. // Reject those flags with syscall.EINVAL.
// If we can handle the flags, this function returns 0. // If we can handle the flags, this function returns 0.
func rejectRenameFlags(flags uint32) syscall.Errno { func rejectRenameFlags(flags uint32) syscall.Errno {
const RENAME_NOREPLACE = 1
switch flags { switch flags {
case 0: case 0:
// Normal rename, we can handle that // Normal rename, we can handle that
return 0 return 0
case RENAME_NOREPLACE: case syscallcompat.RENAME_NOREPLACE:
// We also can handle RENAME_NOREPLACE // We also can handle RENAME_NOREPLACE
return 0 return 0
default: default: