mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
build: fix build with old polkit0
Commit 979e9c56 missed one case of providing the timestamp parameter to virNetServerClientGetUNIXIdentity() when WITH_POLKIT0 is defined.
This commit is contained in:
parent
1d96440a06
commit
442eb2ba29
@ -2899,6 +2899,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED,
|
|||||||
struct daemonClientPrivate *priv =
|
struct daemonClientPrivate *priv =
|
||||||
virNetServerClientGetPrivateData(client);
|
virNetServerClientGetPrivateData(client);
|
||||||
DBusConnection *sysbus;
|
DBusConnection *sysbus;
|
||||||
|
unsigned long long timestamp;
|
||||||
|
|
||||||
virMutexLock(&priv->lock);
|
virMutexLock(&priv->lock);
|
||||||
|
|
||||||
@ -2913,7 +2914,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (virNetServerClientGetUNIXIdentity(client, &callerUid, &callerGid,
|
if (virNetServerClientGetUNIXIdentity(client, &callerUid, &callerGid,
|
||||||
&callerPid) < 0) {
|
&callerPid, ×tamp) < 0) {
|
||||||
VIR_ERROR(_("cannot get peer socket identity"));
|
VIR_ERROR(_("cannot get peer socket identity"));
|
||||||
goto authfail;
|
goto authfail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user