[Spice-devel] [PATCH spice-vdagent] vdagentd: Allow to compile without session info
Pavel Grunt
pgrunt at redhat.com
Thu May 4 09:31:52 UTC 2017
configure supports --with-session-info=none, however the build fails:
src_spice_vdagentd-vdagentd.o: In function `do_client_file_xfer':
src/vdagentd/vdagentd.c:336: undefined reference to
`session_info_session_is_locked'
---
src/vdagentd/vdagentd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
index f3ac606..65aea81 100644
--- a/src/vdagentd/vdagentd.c
+++ b/src/vdagentd/vdagentd.c
@@ -333,6 +333,7 @@ static void do_client_file_xfer(struct vdagent_virtio_port *vport,
"active session, cancelling client file-xfer request %u",
s->id, VD_AGENT_FILE_XFER_STATUS_CANCELLED);
return;
+#if defined(HAVE_CONSOLE_KIT) || defined(HAVE_LIBSYSTEMD_LOGIN)
} else if (session_info_session_is_locked(session_info)) {
syslog(LOG_DEBUG, "Session is locked, skipping file-xfer-start");
send_file_xfer_status(vport,
@@ -340,6 +341,7 @@ static void do_client_file_xfer(struct vdagent_virtio_port *vport,
"Cancelling client file-xfer request %u",
s->id, VD_AGENT_FILE_XFER_STATUS_ERROR);
return;
+#endif
}
udscs_write(active_session_conn, VDAGENTD_FILE_XFER_START, 0, 0,
data, message_header->size);
--
2.12.2
More information about the Spice-devel
mailing list