mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
|
retry:
|
||||||
while ((direrr = virDirRead(dh, &dent, NULL)) > 0) {
|
while ((direrr = virDirRead(dh, &dent, NULL)) > 0) {
|
||||||
if (dent->d_name[0] == '.')
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (virAsprintf(&stablepath, "%s/%s",
|
if (virAsprintf(&stablepath, "%s/%s",
|
||||||
pool->def->target.path,
|
pool->def->target.path,
|
||||||
dent->d_name) == -1) {
|
dent->d_name) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user