From: Ján Tomko Date: Tue, 21 Jun 2016 15:36:33 +0000 (+0200) Subject: Do not skip hidden entries when looking for a stable path X-Git-Tag: v2.0.0-rc1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad2f010b00565c171004a4abe68ed84ffaf862a;p=thirdparty%2Flibvirt.git Do not skip hidden entries when looking for a stable path The device names are unlikely to start with a dot. '.' and '..' are already skipped by virDirRead. --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 4774f5f104..43f6ecc383 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -1940,9 +1940,6 @@ virStorageBackendStablePath(virStoragePoolObjPtr pool, */ retry: while ((direrr = virDirRead(dh, &dent, NULL)) > 0) { - if (dent->d_name[0] == '.') - continue; - if (virAsprintf(&stablepath, "%s/%s", pool->def->target.path, dent->d_name) == -1) {