mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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>
This commit is contained in:
parent
841c7b812c
commit
8344213571
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user