]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Add stubs for virDoes{User,Group}Exist() without getpwuid_r
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 14 Sep 2018 06:18:54 +0000 (08:18 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 14 Sep 2018 07:14:18 +0000 (09:14 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virutil.c

index 3d1b02eceb316a57b3b811f93847e1b37d4d79f0..b0334edb36a087381c7e69e455dc72649027ac55 100644 (file)
@@ -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