From dad2f010b00565c171004a4abe68ed84ffaf862a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 21 Jun 2016 17:36:33 +0200 Subject: [PATCH] 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. --- src/storage/storage_backend.c | 3 --- 1 file changed, 3 deletions(-) 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) {