diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 4c3bdf347aa2d1440151601517f7451ab75388f3..97ee84a5e2f319ef9657ec34f15629e7198c93ca 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -1140,8 +1140,7 @@ static gnutls_certificate_credentials_t x509_cred; static int check_cert_file(const char *type, const char *file) { - struct stat sb; - if (stat(file, &sb) < 0) { + if (access(file, R_OK)) { virReportSystemError(errno, _("Cannot access %s '%s'"), type, file);