提交 22a61f36 编写于 作者: J Jan Kiszka

slirp: Improve error reporting of inaccessible smb directories

Instead of guessing, print the error code returned by access.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
上级 927d811b
......@@ -504,8 +504,8 @@ static int slirp_smb(SlirpState* s, const char *exported_dir,
}
if (access(exported_dir, R_OK | X_OK)) {
error_report("no such directory '%s', or you do not have permission "
"to access it, please check it", exported_dir);
error_report("error accessing shared directory '%s': %s",
exported_dir, strerror(errno));
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册