9p: fix misuse of sscanf() in v9fs_stat2inode()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 31 Jan 2021 19:40:40 +0000 (14:40 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 23 Feb 2021 15:25:28 +0000 (10:25 -0500)
commit9652c73246b980b9f2387916c35e02638d163472
treedda4241b387d15af70c663e1107fec5fbf135d73
parentb1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad
9p: fix misuse of sscanf() in v9fs_stat2inode()

1) sscanf() return value needs to be checked, damnit
2) sscanf() is perfectly capable of checking for fixed prefix,
no need for that %13s + strncmp with constant string.
3) st->extension is a valid string; no need for voodoo with
str*cpy() there.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/vfs_inode.c