]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: Return EPERM rather than ENOSYS from link()
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 14 Feb 2025 01:17:53 +0000 (09:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:41:54 +0000 (14:41 +0200)
commit2371143e41735586d7aefb54c8219781a95d1aa4
tree77ddc5f96b886244efdeee97ce3c1c6d02af9b3b
parent209a4da04a27d17d83734c614af357733db9da41
fuse: Return EPERM rather than ENOSYS from link()

[ Upstream commit 8344213571b2ac8caf013cfd3b37bc3467c3a893 ]

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: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/dir.c