Do not skip files starting with a dot in leases directory

'.' and '..' are skipped by virDirRead already.
This commit is contained in:
Ján Tomko 2016-06-21 17:43:11 +02:00
parent 5217fe3db4
commit 6d7ba87359

View 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;