Blame SOURCES/0065-RHEL-8-Remove-libguestfs-live-RHBZ-798980.patch

c1122e
From 23dcb04f1c8365df1a8ed7c0dd25081169f41571 Mon Sep 17 00:00:00 2001
df3bb2
From: "Richard W.M. Jones" <rjones@redhat.com>
df3bb2
Date: Fri, 21 Dec 2012 15:50:11 +0000
df3bb2
Subject: [PATCH] RHEL 8: Remove libguestfs live (RHBZ#798980).
df3bb2
df3bb2
This isn't supported in RHEL 8.
df3bb2
---
df3bb2
 lib/launch-unix.c | 7 +++++++
df3bb2
 1 file changed, 7 insertions(+)
df3bb2
df3bb2
diff --git a/lib/launch-unix.c b/lib/launch-unix.c
df3bb2
index 9af481fd9..974336ccd 100644
df3bb2
--- a/lib/launch-unix.c
df3bb2
+++ b/lib/launch-unix.c
df3bb2
@@ -37,6 +37,12 @@
df3bb2
 static int
df3bb2
 launch_unix (guestfs_h *g, void *datav, const char *sockpath)
df3bb2
 {
df3bb2
+  error (g,
df3bb2
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
df3bb2
+	 "In particular, \"libguestfs live\" is not supported.");
df3bb2
+  return -1;
df3bb2
+
df3bb2
+#if 0
df3bb2
   int r, daemon_sock = -1;
df3bb2
   struct sockaddr_un addr;
df3bb2
   uint32_t size;
df3bb2
@@ -106,6 +112,7 @@ launch_unix (guestfs_h *g, void *datav, const char *sockpath)
df3bb2
     g->conn = NULL;
df3bb2
   }
df3bb2
   return -1;
df3bb2
+#endif
df3bb2
 }
df3bb2
 
df3bb2
 static int
df3bb2
-- 
df3bb2
2.21.0
df3bb2