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

90a56e
From c1b189f662e4dccce0c3ef72a458f5eba298e949 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
90a56e
index 8ce4ca5..9be2b9c 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
-- 
90a56e
2.9.4
022f11