Blame SOURCES/0013-RHEL-7-Remove-libguestfs-live-RHBZ-798980.patch

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