[PATCH 18/18] Do not skip files starting with a dot in leases directory

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

 



'.' and '..' are skipped by virDirRead already.
---
 tools/nss/libvirt_nss.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c
index 724cb06..66e338a 100644
--- a/tools/nss/libvirt_nss.c
+++ b/tools/nss/libvirt_nss.c
@@ -137,9 +137,6 @@ findLease(const char *name,
     while ((ret = virDirRead(dir, &entry, leaseDir)) > 0) {
         char *path;
 
-        if (entry->d_name[0] == '.')
-            continue;
-
         if (!virFileHasSuffix(entry->d_name, ".status"))
             continue;
 
-- 
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]