mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Do not skip files starting with a dot in leases directory
'.' and '..' are skipped by virDirRead already.
This commit is contained in:
parent
5217fe3db4
commit
6d7ba87359
@ -139,9 +139,6 @@ findLease(const char *name,
|
|||||||
while ((ret = virDirRead(dir, &entry, leaseDir)) > 0) {
|
while ((ret = virDirRead(dir, &entry, leaseDir)) > 0) {
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
if (entry->d_name[0] == '.')
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!virFileHasSuffix(entry->d_name, ".status"))
|
if (!virFileHasSuffix(entry->d_name, ".status"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user