mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
Do not skip hidden entries when looking for a stable path
The device names are unlikely to start with a dot. '.' and '..' are already skipped by virDirRead.
This commit is contained in:
parent
70a033ab42
commit
dad2f010b0
@ -1940,9 +1940,6 @@ virStorageBackendStablePath(virStoragePoolObjPtr pool,
|
||||
*/
|
||||
retry:
|
||||
while ((direrr = virDirRead(dh, &dent, NULL)) > 0) {
|
||||
if (dent->d_name[0] == '.')
|
||||
continue;
|
||||
|
||||
if (virAsprintf(&stablepath, "%s/%s",
|
||||
pool->def->target.path,
|
||||
dent->d_name) == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user