]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix build with old polkit0
authorJim Fehlig <jfehlig@suse.com>
Thu, 9 May 2013 15:46:29 +0000 (09:46 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 9 May 2013 15:53:42 +0000 (09:53 -0600)
Commit 979e9c56 missed one case of providing the timestamp
parameter to virNetServerClientGetUNIXIdentity() when WITH_POLKIT0
is defined.

daemon/remote.c

index 3b6446d50b3cfbc0228b9de34f942ae98c8c3fca..1d214784c779b40b52ce2d28d1e5d29d32532e8a 100644 (file)
@@ -2899,6 +2899,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED,
     struct daemonClientPrivate *priv =
         virNetServerClientGetPrivateData(client);
     DBusConnection *sysbus;
+    unsigned long long timestamp;
 
     virMutexLock(&priv->lock);
 
@@ -2913,7 +2914,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED,
     }
 
     if (virNetServerClientGetUNIXIdentity(client, &callerUid, &callerGid,
-                                          &callerPid) < 0) {
+                                          &callerPid, &timestamp) < 0) {
         VIR_ERROR(_("cannot get peer socket identity"));
         goto authfail;
     }