mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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