[libvirt] [PATCH] util: fix build in virNetDevTapGetRealDeviceName

Roman Bogorodskiy bogorodskiy at gmail.com
Fri Jun 24 18:45:38 UTC 2016


Commit e81de04c switched virNetDevTapGetRealDeviceName() to use
virDirOpen() instead of opendir(), however it mistakenly dropped
DIR *dirp declaration, so restore that to fix build.
---
Pushed under the build-breaker rule.

 src/util/virnetdevtap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c
index 98e27bb..7488a4c 100644
--- a/src/util/virnetdevtap.c
+++ b/src/util/virnetdevtap.c
@@ -95,6 +95,7 @@ virNetDevTapGetRealDeviceName(char *ifname ATTRIBUTE_UNUSED)
 #ifdef TAPGIFNAME
     char *ret = NULL;
     struct dirent *dp;
+    DIR *dirp = NULL;
     char *devpath = NULL;
     int fd;
 
-- 
2.7.4




More information about the libvir-list mailing list