]> xenbits.xensource.com Git - libvirt.git/commitdiff
Do not skip files starting with a dot in leases directory
authorJán Tomko <jtomko@redhat.com>
Tue, 21 Jun 2016 15:43:11 +0000 (17:43 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 23 Jun 2016 19:58:38 +0000 (21:58 +0200)
'.' and '..' are skipped by virDirRead already.

tools/nss/libvirt_nss.c

index d179514945d961bce1a5e622e9a8104fb3e6e4e5..d0b7217e97ea23e68ed42007c412f6add074d329 100644 (file)
@@ -139,9 +139,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;