From: Jim Fehlig Date: Thu, 9 May 2013 15:46:29 +0000 (-0600) Subject: build: fix build with old polkit0 X-Git-Tag: CVE-2013-1962~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=442eb2ba290f58c39f6367b23d90f10db52c5611;p=thirdparty%2Flibvirt.git build: fix build with old polkit0 Commit 979e9c56 missed one case of providing the timestamp parameter to virNetServerClientGetUNIXIdentity() when WITH_POLKIT0 is defined. --- diff --git a/daemon/remote.c b/daemon/remote.c index 3b6446d50b..1d214784c7 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -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, ×tamp) < 0) { VIR_ERROR(_("cannot get peer socket identity")); goto authfail; }