diff options
author | Jan Kiszka | 2012-07-06 08:40:48 +0200 |
---|---|---|
committer | Jan Kiszka | 2012-07-09 17:39:24 +0200 |
commit | 22a61f365df83d5d7884cceb1c462295977cb2db (patch) | |
tree | 3c590573a14bc90f3b4aedebb8b426e556c02158 /net | |
parent | slirp: Ensure smbd and shared directory exist when enable smb (diff) | |
download | qemu-22a61f365df83d5d7884cceb1c462295977cb2db.tar.gz qemu-22a61f365df83d5d7884cceb1c462295977cb2db.tar.xz qemu-22a61f365df83d5d7884cceb1c462295977cb2db.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/slirp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/slirp.c b/net/slirp.c index eb80889572..b82eab0a07 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -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; } |