9p: Missing call to reply_with_perror.

This commit is contained in:
Richard W.M. Jones
2013-02-06 12:59:00 +00:00
parent c98ef8d089
commit f631e84102

View File

@@ -48,8 +48,10 @@ do_list_9p (void)
dir = opendir (BUS_PATH);
if (!dir) {
perror ("opendir: " BUS_PATH);
if (errno != ENOENT)
if (errno != ENOENT) {
reply_with_perror ("opendir: " BUS_PATH);
return NULL;
}
/* If this directory doesn't exist, it probably means that
* the virtio driver isn't loaded. Don't return an error