mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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