mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

da373f
From a7fefab912d97962fb77f0f57799b7b70634376c 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
3efd08
index 4794a7b13..993b83601 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
-- 
da373f
2.18.4
df3bb2