fs/adfs: inode: fix adfs_mode2atts()
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 11:08:23 +0000 (11:08 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jan 2020 01:12:40 +0000 (20:12 -0500)
commit81916245ce231f7405ce444161d09b8a899a38af
tree93a173348aea4ead8568e38e0b35347e989ebf60
parenteeeb9dd98ec353a19988b010223f29a8783127fa
fs/adfs: inode: fix adfs_mode2atts()

Fix adfs_mode2atts() to actually update the file permissions on the
media rather than using the current inode mode.  Note also that
directories do not have read/write permissions stored on the media.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/inode.c