提交 afe604d0 编写于 作者: T Toralf Förster 提交者: Eric Van Hensbergen

fs/9p: adjust sscanf parameters accordingly to the variable types

Signed-off-by: NToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
上级 c9eaa447
......@@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses,
int major = -1, minor = -1;
strlcpy(ext, stat->extension, sizeof(ext));
sscanf(ext, "%c %u %u", &type, &major, &minor);
sscanf(ext, "%c %i %i", &type, &major, &minor);
switch (type) {
case 'c':
res |= S_IFCHR;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册