提交 6d7ba873 编写于 作者: J Ján Tomko

Do not skip files starting with a dot in leases directory

'.' and '..' are skipped by virDirRead already.
上级 5217fe3d
...@@ -139,9 +139,6 @@ findLease(const char *name, ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册