diff options
author | 2025-02-14 09:17:53 +0800 | |
---|---|---|
committer | 2025-03-31 14:55:36 +0200 | |
commit | 8344213571b2ac8caf013cfd3b37bc3467c3a893 (patch) | |
tree | 18ddb52846f42cad4fbf183cde8a953f42a9ac28 | |
parent | fuse: removed unused function fuse_uring_create() from header (diff) | |
download | linux-rng-8344213571b2ac8caf013cfd3b37bc3467c3a893.tar.xz linux-rng-8344213571b2ac8caf013cfd3b37bc3467c3a893.zip |
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: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/fuse/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 3805f9b06c9d..1717ae0d0864 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -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; } |