[PATCH 16/18] Do not skip hidden entries when looking for a stable path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 31c2974..32f0517 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -1951,9 +1951,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) {
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]