mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
slirp: Improve error reporting of inaccessible smb directories
Instead of guessing, print the error code returned by access. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
927d811b28
commit
22a61f365d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue