Commit 83442135 authored by Matt Johnston's avatar Matt Johnston Committed by Miklos Szeredi
Browse files

fuse: Return EPERM rather than ENOSYS from link()

link() is documented to return EPERM when a filesystem doesn't support
the operation, return that instead.

Link: https://github.com/libfuse/libfuse/issues/925


Signed-off-by: default avatarMatt Johnston <matt@codeconstruct.com.au>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 841c7b81
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1137,6 +1137,8 @@ static int fuse_link(struct dentry *entry, struct inode *newdir,
	else if (err == -EINTR)
		fuse_invalidate_attr(inode);

	if (err == -ENOSYS)
		err = -EPERM;
	return err;
}