[libvirt] [PATCH] util: Add stubs for virDoes{User, Group}Exist() without getpwuid_r

Martin Kletzander mkletzan at redhat.com
Fri Sep 14 07:22:23 UTC 2018


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
Pushed under the build-breaker rule.

 src/util/virutil.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/util/virutil.c b/src/util/virutil.c
index 3d1b02eceb31..b0334edb36a0 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -1248,6 +1248,18 @@ virGetGroupList(uid_t uid ATTRIBUTE_UNUSED, gid_t gid ATTRIBUTE_UNUSED,
     return 0;
 }
 
+int
+virDoesUserExist(const char *name ATTRIBUTE_UNUSED)
+{
+    return 0;
+}
+
+int
+virDoesGroupExist(const char *name ATTRIBUTE_UNUSED)
+{
+    return 0;
+}
+
 # ifdef WIN32
 /* These methods are adapted from GLib2 under terms of LGPLv2+ */
 static int
-- 
2.18.0




More information about the libvir-list mailing list