• Miklos Szeredi's avatar
    fuse: fix fileattr op failure · a679a615
    Miklos Szeredi authored
    The fileattr API conversion broke lsattr on ntfs3g.
    
    Previously the ioctl(... FS_IOC_GETFLAGS) returned an EINVAL error, but
    after the conversion the error returned by the fuse filesystem was not
    propagated back to the ioctl() system call, resulting in success being
    returned with bogus values.
    
    Fix by checking for outarg.result in fuse_priv_ioctl(), just as generic
    ioctl code does.
    Reported-by: default avatarJean-Pierre André <jean-pierre.andre@wanadoo.fr>
    Fixes: 72227eac ("fuse: convert to fileattr")
    Cc: <stable@vger.kernel.org> # v5.13
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    a679a615
ioctl.c 12.4 KB